工具 API

doc.insert_markdown

在 Word 文档指定位置插入 Markdown 格式内容,引擎自动转换为富文本格式。推荐使用 base64_markdown 参数避免特殊字符问题。语义说明:按段落导入时,每个块级段落(如 <p>/标题/列表项)都会生成段落分隔符(\r),因此最后一个段落通常也会以段落分隔符结束。注意:如需精确控制标题级别和列表样式,建议使用 insert_paragraph + insert_text 组合。使用前请先调用 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_markdown
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

base64_markdown

base64编码的Markdown内容,优先级高于markdown,与markdown二选一

file_id

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

file_url

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

idx必填

插入位置索引

markdown

Markdown格式内容,与base64_markdown二选一

version_info

版本参数