TOOL API
doc. insert_ html_ content
在 Word 文档指定 idx 处插入一段 HTML 富文本,引擎会按 HTML 标签/内联样式自动转为段落、标题、列表、表格、链接、加粗/斜体/下划线等富文本元素。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(或使用 get_last_operable_pos 获取文档末尾位置)。已知支持:段落与标题(<p>/<h1>..<h6>)、文本样式(<b>/<i>/<u>/<s>/<sub>/<sup>/<span style>)、链接(<a>)、列表(<ul>/<ol><li>)、表格(<table><tr><td>)、分隔(<br>/<hr>)。已知不支持:<script>/<style>标签、position/float/flex/grid等CSS布局属性。注意:idx 必须是有效的段落起始位置,确保 idx 落在真正的段落起始位置(\r 之后),而不是 Field 域内部(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_html_content
- Provider
- Tencent Docs
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
html_textrequiredHTML内容
idxrequired插入位置索引
version_info版本参数