工具 API

doc.insert_text

在 Word 文档指定位置插入文本,需要换行时应使用 insert_paragraph 插入段落而非在文本中插入换行符。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(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.insert_text
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

file_id

在线文档DOC的文档唯一标识符(与file_url二选一)

file_url

腾讯文档的URL链接(推荐),与file_id二选一

idx必填

插入的文档位置索引

text必填

要插入的文本内容。注意:如果需要插入换行,应该使用插入段落操作,而不是在文本里插入'\n'符号

version_info

版本参数