工具 API
doc. copy_ format
格式刷(DOC):将源范围的段落属性和文本属性复制到目标范围。读取 source_range 起始位置处生效的段落格式(对齐、缩进、间距、样式等)和文本格式(加粗、斜体、字号、字体、颜色等),然后应用到 target_ranges 指定的所有范围上。适用于快速统一多个段落/文本的格式。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的位置索引。 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.
productivityOAuth1 积分
调用信息
- 工具标识
- tencent-docs.doc.copy_format
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
copy_paragraph_format是否复制段落格式
copy_text_format是否复制文本格式
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
source_range必填格式来源范围
target_ranges必填目标范围列表
version_info版本参数