工具 API
doc. replace_ text
替换 Word 文档中指定范围内的文本为新文本,建议先用 find 查找定位后再调用此工具精确替换。使用前请先调用 resolve_document_structure 获取文档结构,或使用 find 查找文本位置,以确定正确的 begin/end 范围(DOC) 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.replace_text
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
ranges必填要替换的文档范围列表
text必填替换后的新文本内容
version_info版本参数