服务与工具
腾讯文档
腾讯文档官方远程 MCP:文档/表格/智能文档读写与空间管理(OAuth,需授权)
219 个可用工具
aicanvas. bind_ smartsheet
将当前 Page 绑定到智能表文档,一个 Page 只能绑定一个智能表文档(多个 Page 可绑定同一个智能表文档)。绑定后 Page 才能读写该智能表数据 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick …
aicanvas. read_ page_ source
按行范围读取已有Page的入口HTML源码内容,用法类似读取本地文件。适用于用户上传HTML文件自动导入成的Page品类:拿到Page在线链接对应的file_id后调用本工具,即可取回该Page当前的HTML源码用于分析或改造。默认返回第1~500行;通过start_line(起始行,从1开始)/end_line(结束行,含)指定读取范围。返回html(本次行范围的源码片段)、entry(入口文件…
aicanvas. reimport_ page
用新的.aipage导入制品整份覆盖已有Page(二次编辑场景)。前置条件:需先调用manage.pre_import获取upload_url和file_key,并把重新打包的.aipage文件PUT上传到upload_url,然后调用本工具。调用成功后已有Page的内容被新制品整体替换并返回新版本号version;file_id与在线链接保持不变,已绑定的智能表关系原样保留,无需重新导入或重新绑…
check_ skill_ update
检查技能更新
create_ flowchart_ by_ mermaid
通过Mermaid格式创建在线流程图,内容必须是不包含中文的 UTF-8 格式的 Mermaid 文本,特殊字符不需要转义。支持基于Mermaid生成流程图结构和连接关系。重要提示:请严格使用以下参数名:"title"(流程图标题)和 "mermaid"(Mermaid内容),不要使用 content、text、doc_title、code 等其他名称 if both tencent-docs (…
create_ mind_ by_ markdown
通过Markdown格式创建在线思维导图,内容必须是 UTF-8 格式的 Markdown 文本,特殊字符不需要转义。支持标题层级和列表的嵌套结构,适用于构建层次化的知识图谱和思维组织场景。重要提示:请严格使用以下参数名:"title"(思维导图标题)和 "markdown"(Markdown内容),不要使用 content、text、doc_title 等其他名称 if both tencent…
create_ slide
通过AI生成或编辑幻灯片(PPT)。后端内置独立AI,自动生成PPT内容和排版。 ## 核心规则(必须遵守) 1. description = 用户原话。逐字复制用户输入,禁止添加、改写、扩写、润色任何文字 2. reference_context = 仅用户主动提供的材料。用户未提供材料时禁止传此参数,禁止Agent搜索或生成资料 ## 使用方式 - 首次生成:不传session_id - …
create_ smartcanvas_ by_ mdx
【创建文档的首选工具】创建排版丰富的在线智能文档。 【格式选择】通过content_format参数指定内容格式: - mdx(默认,强烈推荐):支持分栏布局ColumnList、高亮块Callout、待办列表Todo、表格Table、带样式文本Mark等丰富排版组件,适用于需要复杂排版和视觉效果的场景。内容必须严格遵循mdx_references规范,生成后须对照规范逐条自校验,确保合规后再提…
create_ space
创建空间,创建腾讯文档空间,创建个人空间,返回空间id 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.
create_ space_ node
在空间树中创建新节点,支持创建文件夹、在线文档、链接等多种类型,可指定父节点和插入位置。 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking…
delete_ space_ node
删除空间中的指定节点,仅删除当前节点,子节点自动挂载到上级节点 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.
doc. accept_ all_ revisions
接受 Word 文档中的所有修订(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.
doc. ai_ format_ pure_ text
将任意文本转换成格式美化后的腾讯文档,需要Skill配合 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.
doc. compare_ documents
对比两个 DOC 文档的内容和格式差异。返回段落级别的差异列表,包括新增/删除/内容修改/格式修改。当前文档作为基准(source),通过 other_file_id 或 other_file_url 指定对比目标(target)。差异类型:added(目标新增)、deleted(源文档删除)、modified_content(内容变化)、modified_format(格式变化,如对齐方式、标题…
doc. copy_ format
格式刷(DOC):将源范围的段落属性和文本属性复制到目标范围。读取 source_range 起始位置处生效的段落格式(对齐、缩进、间距、样式等)和文本格式(加粗、斜体、字号、字体、颜色等),然后应用到 target_ranges 指定的所有范围上。适用于快速统一多个段落/文本的格式。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的位置索引。 if b…
doc. create_ with_ markdown
用 Markdown 创建文档(DOC)。用 Markdown 内容直接创建一篇新的 Word 文档,无需先调用 manage.create_file 再 insert_markdown,一步完成文档创建和内容写入。 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUser…
doc. find
在 Word 文档中查找指定文本,返回所有匹配位置及上下文,建议替换前先用此工具定位再用 replace_text 精确替换(DOC)
doc. find_ and_ replace
在 Word 文档中查找所有匹配文本并直接替换为新文本,会替换所有匹配项(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 th…
doc. get_ comments
获取 Word 文档中所有批注(DOC)。返回按 range_begin 升序排列的批注数组,每条包含:id(批注 id,与 insert_comment 写入时一致)、range_begin / range_end(批注锚定范围的字符 idx,与 get_last_operable_pos.position 同坐标系;begin == end 表示零长度的「点锚」批注,对应字段 is_point…
doc. get_ images
获取 Word 文档中所有图片的信息,包括图片位置、URL 或附件 ID(DOC)
doc. get_ last_ operable_ pos
获取 Word 文档正文最后一个可操作位置的索引及前面内容,用于向文档末尾追加内容时定位插入位置(DOC)
doc. get_ outline
获取 Word 文档大纲结构(标题层级树),包含各标题和正文的可操作起止位置,编辑前推荐先调用此工具了解文档结构(DOC)
doc. get_ paragraph_ property
读取 DOC 文档指定位置 index 所在「段落」的属性(与 insert_paragraph 字段对称):段落样式名(如 heading 1 / Title / Normal)、大纲级别、heading_level (1..9, 0=非标题)、是否带编号及编号级别 (1..9)、对齐方式、缩进(twips)、段前/后间距 (pt) 与行距。字段不存在表示未显式设置(继承默认值)。主要用于在修改…
doc. get_ table_ info
获取指定位置 idx 所在表格的整体信息(DOC)。返回行高/列宽/合并情况/各单元格文本+属性,是 set_table_layout / set_table_properties 等表格写类工具的「前置查询」。⚠️ idx 必须落在表格内部;若不确定,先用 resolve_document_structure 找到 type=="Table" 的节点,再用其 cells[].start_inde…
doc. get_ text_ property
读取 DOC 文档指定位置 index 处生效的文本属性(与 update_text_property 字段对称):加粗/斜体/下划线/删除线/小型大写/颜色/底纹(background_color)/高亮(highlight)/字号(pt)/字体/上下标等。响应中「字段不存在」表示该属性未在 run 上显式设置,应认为「继承自段落/样式默认值」(DOC)。
doc. insert_ attachment
在 Word 文档指定位置插入附件(DOC)。本接口是 pre_insert_attachment 的后续步骤:必须先调用 pre_insert_attachment 获取 upload_url 和 object_key,客户端使用 HTTP PUT 上传文件成功后,再调用本接口完成附件插入 if both tencent-docs (personal) and tencent-docs-oa (…
doc. insert_ border
在指定位置插入分隔符(DOC)。通过设置段落底部边框来实现水平分隔线效果。⚠️ idx 必须是「分隔线上方那个段落」的 end_index(即该段落的段落分隔符 ¶ 的位置)。例如:想在第 2 段和第 3 段之间插入分隔线,应传第 2 段的 end_index。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引。支持多种边框样式(single…
doc. insert_ code_ block
在指定位置直接插入一个代码块(DOC)。代码块会以原生 textbox 形式呈现,支持语法高亮语言标签。适用场景:需要在文档中插入代码片段时使用,无需包裹 markdown 围栏语法,直接传入代码内容即可。自动格式化:会自动去除所有行的公共前导缩进(dedent),无需手动处理缩进对齐。使用前请先调用 resolve_document_structure 或 get_last_operable_p…
doc. insert_ cols
在指定表格中批量插入多列(DOC)。通过 idx 定位目标表格(表格内任意单元格的 GCP 位置),cols 为要插入的多列描述列表,支持一次插入多列,所有插入相对于原表格列号生效(引擎会自动按降序依次应用,避免索引偏移) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskU…
doc. insert_ comment
在 Word 文档指定范围内插入批注(评论),插入后文本长度会变化,后续操作需重新获取位置。允许 range_begin == range_end(点锚批注,批注附着在单一位置上、不选中任何范围)。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的位置索引(DOC) if both tencent-docs (personal) and tencent-…
doc. insert_ footer
设置页脚文本内容(DOC)。覆盖式写入:先清空已有页脚内容,再写入新文本。本工具一次只处理一个 section(由 section_index 指定);如需对多个 section 都写入页脚,请按需多次调用本工具。首次插入时会为目标 section 独立创建页眉页脚 substory,打破该 section 与前一节链接到上一节的关系。⚠️ 重要:本工具与 doc_set_page_number …
doc. insert_ footnote
在指定位置插入脚注或尾注(DOC)。脚注显示在页面底部,尾注显示在文档末尾。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引。⚠️ idx 应该使用目标文本的最后一个字符位置(即段落的 end_index - 1,段落分隔符 ¶ 之前),这样脚注/尾注引用标记会出现在文本末尾而非中间。例如:文本"你好"占据索引 5-7(5='你', 6='…
doc. insert_ header
设置页眉文本内容(DOC)。覆盖式写入:先清空已有页眉内容,再写入新文本。本工具一次只处理一个 section(由 section_index 指定);如需对多个 section 都写入页眉,请按需多次调用本工具。首次插入时会为目标 section 独立创建页眉页脚 substory,打破该 section 与前一节"链接到上一节"的关系 if both tencent-docs (persona…
doc. insert_ html_ content
在 Word 文档指定 idx 处插入一段 HTML 富文本,引擎会按 HTML 标签/内联样式自动转为段落、标题、列表、表格、链接、加粗/斜体/下划线等富文本元素。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(或使用 get_last_operable_pos 获取文档末尾位置)。已知支持:段落与标题(<p>/<h1>..<h6>)、…
doc. insert_ image
在 Word 文档指定位置插入图片。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(DOC) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick th…
doc. insert_ markdown
在 Word 文档指定位置插入 Markdown 格式内容,引擎自动转换为富文本格式。推荐使用 base64_markdown 参数避免特殊字符问题。语义说明:按段落导入时,每个块级段落(如 <p>/标题/列表项)都会生成段落分隔符(\r),因此最后一个段落通常也会以段落分隔符结束。注意:如需精确控制标题级别和列表样式,建议使用 insert_paragraph + insert_text 组合。…
doc. insert_ normal_ link
在 Word 文档指定位置插入普通超链接,可指定链接 URL 和显示文本。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(DOC) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to l…
doc. insert_ numbering
在 Word 文档中插入项目列表(编号/项目符号)(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.
doc. insert_ page_ break
在 Word 文档指定位置插入分页符。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(DOC) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick t…
doc. insert_ paragraph
在指定 idx 处插入一个「段落分隔符」(paragraph break),并对「该分隔符之前的文本」应用段落级样式。⚠️ 本接口不写入任何文本内容,仅修饰段落属性。正确工作流:先调 insert_text 写入文本,再调 insert_paragraph 把上述文本所在段落标为指定样式。当 type="1"或"2"时必须同时传 numbering_lvl。相关接口:「插入带文本的标题/编号段落」…
doc. insert_ paragraph_ with_ text
一步插入「带文本的段落」(DOC)。原子完成「在 idx 处插入 text → 在 idx+len(text) 处插入段落分隔符 → 应用 level/type/numbering_lvl/indent_count」。推荐首选此接口而非「insert_text + insert_paragraph」两步调用,避免两步之间的位置漂移。使用前请先调用 resolve_document_structur…
doc. insert_ rows
在指定表格中批量插入多行(DOC)。通过 idx 定位目标表格(表格内任意单元格的 GCP 位置),rows 为要插入的多行描述列表,支持一次插入多行,所有插入相对于原表格行号生效(引擎会自动按降序依次应用,避免索引偏移) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskU…
doc. insert_ table
在 Word 文档指定位置插入表格,需指定行数和列数。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(DOC) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the use…
doc. insert_ task
在 Word 文档指定位置插入一个或多个任务(待办事项),支持设置任务状态和内容文本。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(DOC) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestio…
doc. insert_ text
在 Word 文档指定位置插入文本,需要换行时应使用 insert_paragraph 插入段落而非在文本中插入换行符。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的插入位置索引(DOC) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, u…
doc. list_ recent_ ai_ edits
列出文档最近通过 MCP 写工具产生的 AI 编辑记录(DOC)。 返回每条记录的 version + tool_name + time + tool_args(按时间倒序)。 撤销某次 AI 操作前,必须先调本工具:在返回列表中按 tool_name / tool_args 与用户描述匹配, 确认具体操作及其 version,再调 doc.undo_ai_edit(target_version=…
doc. modify_ paragraph
修改已有段落的属性(DOC),支持设置对齐方式、行间距、段前段后间距、段落样式、缩进、引用、编号等。本工具用于在原有段落上修改属性,如需添加新的待办事项内容请使用 insert_tasks_with_content,如需添加新的列表项目请使用 insert_paragraph。ranges 为段落范围列表,每项包含 begin 和 end(字符位置索引)。所有属性均为可选,只传入需要修改的字段即可…
doc. pre_ insert_ attachment
在 Word 文档中预插入附件,获取上传链接和 object_key。客户端需使用 HTTP PUT 方法将文件上传到返回的 upload_url,上传完成后再调用 insert_attachment 完成附件插入(DOC) if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use Ask…
doc. replace_ bookmarks
替换 Word 文档中书签标记范围的内容,支持文本和图片类型替换(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 t…
doc. replace_ image
替换 Word 文档中的图片,必须同时提供三组参数:1) idx(图片位置)2) old_image_url 或 old_attachment_id(定位旧图片)3) 新图片来源(按下方优先级三选一)。建议先用 get_images 获取图片信息,再用返回的 pos 和 image_url/attachment_id 填入对应参数(DOC) if both tencent-docs (person…