工具 API

doc.insert_paragraph

在指定 idx 处插入一个「段落分隔符」(paragraph break),并对「该分隔符之前的文本」应用段落级样式。⚠️ 本接口不写入任何文本内容,仅修饰段落属性。正确工作流:先调 insert_text 写入文本,再调 insert_paragraph 把上述文本所在段落标为指定样式。当 type="1"或"2"时必须同时传 numbering_lvl。相关接口:「插入带文本的标题/编号段落」请使用 insert_paragraph_with_text(一步完成);「只写入纯文本」请使用 insert_text;「批量插入富文本」请使用 insert_html_content 或 insert_markdown;「改变现有段落样式」请使用 modify_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_paragraph
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

file_id

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

file_url

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

idx必填

插入的文档位置索引

indent_count

缩进数量

level

标题级别

numbering_lvl

编号级别

numbering_type

编号类别

version_info

版本参数