TOOL API

doc.insert_paragraph_with_text

Inserts a text paragraph into a Tencent Docs document in one atomic step: adds the text at the given index, inserts the paragraph break after it, and applies the heading level, numbering, and indentation. Prefer this over calling insert_text and insert_paragraph separately, since it avoids index drift between the two steps. Call resolve_document_structure first to find the correct insertion index; 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

版本参数