工具 API
doc. insert_ paragraph_ with_ text
一步插入「带文本的段落」(DOC)。原子完成「在 idx 处插入 text → 在 idx+len(text) 处插入段落分隔符 → 应用 level/type/numbering_lvl/indent_count」。推荐首选此接口而非「insert_text + insert_paragraph」两步调用,避免两步之间的位置漂移。使用前请先调用 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.insert_paragraph_with_text
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
idx必填插入位置索引,-1 表示在文档开头插入(即在第一段之前)
indent_count编号前缩进空格数
level标题级别
numbering_lvl编号级别
text必填段落文本内容
type编号类别
version_info版本参数