TOOL 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 credits
Call information
- Tool slug
- tencent-docs.doc.insert_paragraph
- 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插入的文档位置索引
indent_count缩进数量
level标题级别
numbering_lvl编号级别
numbering_type编号类别
version_info版本参数