TOOL 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 credits

Call information

Tool slug
tencent-docs.doc.insert_paragraph_with_text
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

file_id

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

file_url

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

idxrequired

插入位置索引,-1 表示在文档开头插入(即在第一段之前)

indent_count

编号前缩进空格数

level

标题级别

numbering_lvl

编号级别

textrequired

段落文本内容

type

编号类别

version_info

版本参数