wb-clouddoc-suite-mcp
v1.0.0一站式文档套件:云端文档协作 + 本地 Office 深度处理 + 免密钥生成与 OCR
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cdoc_file_create
创建在线文档。doc_type 取值:doc/sheet/ppt/smart_note/mindmap/flowchart/form/attachment。 返回新文档的 file_id 与访问链接。
| Parameter | Type | Description |
|---|---|---|
doc_type * | string | |
name * | string | |
content | ||
folder_id |
cdoc_file_content
读取在线文档内容(按品类自动路由)。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_file_info
获取文档元信息(类型/版本/权限),编辑前必须先调用以确认品类。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_file_rename
重命名文档。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
name * | string |
cdoc_file_move
移动文档到目标文件夹(云端 drive move,需源与目标目录权限)。 注意:若云端未开放 move 会明确返回不支持提示(替代:下载→在目标目录新建→删除原文件)。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
folder_id * | string |
cdoc_file_delete
⚠️ 危险操作:软删除文档到回收站(可回收)。彻底删除请用 cdoc_trash_destroy(需二次确认)。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_file_search
按关键词搜索在线文档。
| Parameter | Type | Description |
|---|---|---|
keyword * | string | |
limit | integer |
cdoc_file_upload
上传本地文件到云空间(新建文件,二进制安全)。默认拦截禁止类型 (.exe/.bat/.ps1/.zip 等,详见安全规范);仅技能内部生成的 docx/pptx/pdf/svg/png 等可上传。需要目标文件夹 token。
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
folder_id |
cdoc_file_download
导出在线文档内容到本地文件。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
target_path * | string |
cdoc_folder_create
创建文件夹。
| Parameter | Type | Description |
|---|---|---|
name * | string | |
parent_id |
cdoc_folder_list
列出子文件夹。
| Parameter | Type | Description |
|---|---|---|
folder_id |
cdoc_space_quota
查询空间用量与剩余配额。 注意:空间配额接口视应用版本可能未开放,若不可用会明确返回提示。
cdoc_trash_list
列出回收站文件。
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
cdoc_trash_recover
从回收站恢复文件(误删可救回)。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_trash_destroy
⚠️ 危险操作(不可逆):彻底删除回收站文件。执行前必须向用户二次确认。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_version_list
列出文档历史版本。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_version_restore
回滚文档到指定历史版本。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
version * | integer |
cdoc_et_create
创建在线电子表格。
| Parameter | Type | Description |
|---|---|---|
name * | string |
cdoc_et_range_write
批量写入单元格区域(连续 3+ 写入必须用批量接口)。
| Parameter | Type | Description |
|---|---|---|
range * | string | |
sheet_id * | string | |
values * | array |
cdoc_et_formula_set
设置单元格公式。
| Parameter | Type | Description |
|---|---|---|
cell * | string | |
formula * | string | |
sheet_id * | string |
cdoc_dbt_create
创建多维表格。
| Parameter | Type | Description |
|---|---|---|
name * | string |
cdoc_dbt_field_add
添加字段(text/number/select/date 等)。
| Parameter | Type | Description |
|---|---|---|
field_type * | string | |
name * | string | |
table_id * | string | |
options |
cdoc_dbt_record_add_batch
批量添加记录。
| Parameter | Type | Description |
|---|---|---|
records * | array | |
table_id * | string |
cdoc_dbt_record_query
查询记录,filter 为 JSON 字符串。
| Parameter | Type | Description |
|---|---|---|
table_id * | string | |
filter | ||
limit | integer |
cdoc_dbt_webhook_set
设置多维表格 Webhook 事件监听。
| Parameter | Type | Description |
|---|---|---|
callback_url * | string | |
events * | array | |
table_id * | string |
cdoc_form_create
创建收集表/问卷。 注意:云端表单(Form)无等效通用 REST 接口,本工具会明确返回不支持提示; 请在表单开放接口或网页创建。
| Parameter | Type | Description |
|---|---|---|
name * | string | |
description |
cdoc_form_answers
查询收集表答卷。 注意:云端表单答卷无查询式 REST 接口,本工具会明确返回不支持提示; 答卷经事件订阅拉取。
| Parameter | Type | Description |
|---|---|---|
form_id * | string | |
limit | integer |
cdoc_office_convert
格式转换:doc→pdf/word/excel/ppt 等。 注意:云端层未覆盖通用格式转换,本工具会明确返回不支持提示; 建议用本地格式转换引擎或云端文档「导出」能力。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
target_format * | string |
cdoc_office_extract
提取文档纯文本。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_file_permission
变更文档权限/分享成员。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
members * | array |
cdoc_notification_send
发送通知(群机器人 webhook)。content 为 JSON 字符串。
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
content * | string | |
webhook_key * | string |
cdoc_user_info
获取当前用户信息。 注意:应用身份(tenant_access_token)无登录用户上下文,本工具会明确返回不支持提示; 如需用户维度数据请用 user_access_token 流程。
cdoc_local_docx_generate
【免密钥】根据 Markdown/文本生成本地 DOCX(会议纪要/周报/合同等),可直接上传覆盖。 template: blank/weekly_report/meeting_notes。
| Parameter | Type | Description |
|---|---|---|
content * | string | |
output_path | ||
template | string |
cdoc_local_pptx_generate
【免密钥】生成本地 PPTX。slides: [{title, bullets:[...]}] 或 [{title, image}]。
| Parameter | Type | Description |
|---|---|---|
slides * | array | |
title * | string | |
output_path | ||
subtitle | string |
cdoc_local_mindmap_generate
【免密钥】根据 mermaid graph 代码生成本地思维导图 SVG。
| Parameter | Type | Description |
|---|---|---|
code * | string | |
output_path |
cdoc_local_flowchart_generate
【免密钥】根据 mermaid flowchart 代码生成本地流程图 SVG。
| Parameter | Type | Description |
|---|---|---|
code * | string | |
output_path |
cdoc_ocr_extract
OCR 提取图片文字:优先本机 Tesseract(免费无 key), 未安装则降级云端(需 App Key,数据会出域),都不可用给出安装指引。
| Parameter | Type | Description |
|---|---|---|
image_path * | string | |
lang | string |
cdoc_local_hardware_profile
【免密钥】采集本机硬件并自动给出推荐并发子进程数 / 批量大小(避免拖累电脑)。
cdoc_skill_update_check
每日首次调用时检查 CloudDocs 更新;有新版返回升级提醒(不自动安装)。
cdoc_skill_feedback
提交功能建议/问题反馈(仅回显并提示邮箱,不自动发送)。
| Parameter | Type | Description |
|---|---|---|
message * | string |
cdoc_ai_write
【免密钥】AI 写作辅助:润色/扩写/缩写/续写/改写。 action: polish(润色) / expand(扩写) / shorten(缩写) / continue_write(续写) / rewrite(改写) 本地降级处理,效果有限但零配置可用。
| Parameter | Type | Description |
|---|---|---|
text * | string | |
action | string |
cdoc_ai_analyze
【免密钥】AI 数据分析:自然语言提问,生成公式建议与基础统计。 data: CSV 文本或表格数据(每行数值用逗号/空格分隔) question: 自然语言问题(如"分析趋势"、"计算平均") 本地基础统计分析,零配置可用。
| Parameter | Type | Description |
|---|---|---|
data * | string | |
question * | string |
cdoc_ai_ppt
【免密钥】AI PPT 生成:根据大纲自动生成本地 PPT。 outline: Markdown 大纲(# 标题 → ## 子标题 → - 要点) output_path: 输出路径(默认 output/ai_ppt.pptx) 本地 python-pptx 生成,零配置可用。
| Parameter | Type | Description |
|---|---|---|
outline * | string | |
output_path | string |
cdoc_ai_read
【免密钥】AI 阅读助手:总结/问答/思维导图。 action: summarize(总结) / qa(问答,需传 question) / mindmap(思维导图) content: 文档全文 本地 TextRank 摘要 + 关键词提取,零配置可用。
| Parameter | Type | Description |
|---|---|---|
content * | string | |
action | string | |
question | string |
cdoc_ai_detect_intent
检测用户输入意图,返回匹配的 AI 能力。
| Parameter | Type | Description |
|---|---|---|
user_input * | string |
cdoc_conflict_detect
【免密钥】冲突检测:检测多人并发修改的冲突位置与双方内容。 返回结构化冲突列表与统计。本地 difflib 算法,零配置可用。
| Parameter | Type | Description |
|---|---|---|
base_text * | string | |
version_a * | string | |
version_b * | string |
cdoc_conflict_merge
【免密钥】智能合并:无冲突段自动合并,冲突段标注 VERSION_A/VERSION_B。 返回合并后文本与冲突统计。本地 difflib 算法,零配置可用。
| Parameter | Type | Description |
|---|---|---|
base_text * | string | |
version_a * | string | |
version_b * | string |
cdoc_conflict_diff
【免密钥】冲突可视化:生成 Git diff 风格的结构化差异数据。 返回 diff 行列表、统计与可选 HTML。本地 difflib 算法,零配置可用。
| Parameter | Type | Description |
|---|---|---|
version_a * | string | |
version_b * | string | |
label_a | string | |
label_b | string |
cdoc_conflict_resolve
【免密钥】冲突解决:应用合并策略。 strategy: keep_a(保留A) / keep_b(保留B) / manual(手动合并,需传 manual_text) / auto_merge(自动合并) 本地 difflib 算法,零配置可用。
| Parameter | Type | Description |
|---|---|---|
base_text * | string | |
version_a * | string | |
version_b * | string | |
manual_text | string | |
strategy | string |
cdoc_compliance_sensitive
【免密钥】敏感词扫描:内置敏感词库(适配中国监管),标注命中位置。 custom_words: 逗号分隔的额外敏感词 本地正则匹配,零配置可用。
| Parameter | Type | Description |
|---|---|---|
text * | string | |
custom_words | string |
cdoc_compliance_leak
【免密钥】数据泄露检测:扫描手机号/身份证号/银行卡号/邮箱等敏感信息。 返回风险等级+脱敏显示。本地正则匹配,零配置可用。
| Parameter | Type | Description |
|---|---|---|
text * | string |
cdoc_compliance_format
【免密钥】格式规范检查:按企业文档规范逐项检查,生成不合规清单。 支持 .docx / .pptx / .txt / .md 格式。本地 XML 解析,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_path * | string |
cdoc_compliance_classify
【免密钥】密级自动标注:根据内容建议密级(公开/内部/秘密/机密)。 本地关键词+规则引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
text * | string |
cdoc_realtime_create
【免密钥】创建实时协同文档。 client_id: 当前客户端标识 session_id: 会话 ID(留空则自动创建) 本地 CRDT 引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
client_id * | string | |
session_id | string |
cdoc_realtime_insert
【免密钥】在协同文档中插入文本。 client_id: 当前客户端标识 pos: 插入位置 text: 插入的文本 本地 CRDT 引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
client_id * | string | |
pos * | integer | |
text * | string |
cdoc_realtime_delete
【免密钥】在协同文档中删除文本。 client_id: 当前客户端标识 pos: 删除起始位置 length: 删除长度 本地 CRDT 引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
client_id * | string | |
pos * | integer | |
length | integer |
cdoc_realtime_get_text
【免密钥】获取协同文档当前文本。 client_id: 当前客户端标识 本地 CRDT 引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
client_id * | string |
cdoc_realtime_stats
【免密钥】获取协同文档统计信息。 client_id: 当前客户端标识 本地 CRDT 引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
client_id * | string |
cdoc_ai_rewrite
【免密钥】AI 段落改写:将指定段落按目标风格改写。 style: formal(正式) / casual(口语) / concise(简洁) / elaborate(详细) 本地降级占位,AI API 开放后升级为原生。
| Parameter | Type | Description |
|---|---|---|
paragraph * | string | |
style | string |
cdoc_ai_summarize
【免密钥】AI 段落总结:提取段落核心要点。 max_length: 最大摘要字数 本地降级占位,AI API 开放后升级为原生。
| Parameter | Type | Description |
|---|---|---|
paragraph * | string | |
max_length | integer |
cdoc_ai_continue
【免密钥】AI 段落续写:根据方向继续写作。 direction: 续写方向(如"详细说明"、"举例"、"总结") 本地降级占位,AI API 开放后升级为原生。
| Parameter | Type | Description |
|---|---|---|
paragraph * | string | |
direction | string |
cdoc_template_list
【免密钥】列出所有可用模板。 category: 按类别筛选(可选) 本地模板市场,零配置可用。
| Parameter | Type | Description |
|---|---|---|
category | string |
cdoc_template_search
【免密钥】搜索模板。 keyword: 搜索关键词 本地模板市场,零配置可用。
| Parameter | Type | Description |
|---|---|---|
keyword * | string |
cdoc_template_use
【免密钥】使用模板(变量替换)。 name: 模板名称 variables: JSON 格式变量,如 '{"title": "周报", "author": "张三"}' 本地模板市场,零配置可用。
| Parameter | Type | Description |
|---|---|---|
name * | string | |
variables | string |
cdoc_template_refresh
【免密钥】刷新模板仓库(git pull)。 本地模板市场,零配置可用。
cdoc_compare_diff
【免密钥】文档对比:两版文档差异高亮。 返回差异行列表+统计+相似度。本地 difflib 算法,零配置可用。
| Parameter | Type | Description |
|---|---|---|
text_a * | string | |
text_b * | string | |
label_a | string | |
label_b | string |
cdoc_compare_summary
【免密钥】变更摘要:两版文档增删改统计+关键变化。 本地 difflib 算法,零配置可用。
| Parameter | Type | Description |
|---|---|---|
text_a * | string | |
text_b * | string |
cdoc_compare_export
【免密钥】导出对比报告。 format: markdown(默认) | html 本地 difflib 算法,零配置可用。
| Parameter | Type | Description |
|---|---|---|
text_a * | string | |
text_b * | string | |
format | string |
cdoc_view_render
【免密钥】多维表格视图渲染:看板/日历/甘特图。 view_type: kanban / calendar / gantt data: JSON 字符串,格式 {"records": [...], "fields": [...]} config: JSON 字符串(可选),如 {"mode": "month"} 本地渲染引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
data * | string | |
view_type * | string | |
config | string |
cdoc_view_list
【免密钥】列出所有可用的多维表格视图类型。 本地规则引擎,零配置可用。
cdoc_ocr_formula
【免密钥】数学公式识别:图片 → LaTeX/MathML。 image_path: 公式图片路径 output_format: latex(默认)| mathml | text 本地 Tesseract + 符号映射,零配置可用。
| Parameter | Type | Description |
|---|---|---|
image_path * | string | |
output_format | string |
cdoc_ocr_education
【免密钥】教育场景 OCR:手写公式/试卷/题目识别。 image_path: 图片路径 scene: auto(自动检测)| handwriting | formula | mixed 自动判断手写体/印刷公式/混合内容,零配置可用。
| Parameter | Type | Description |
|---|---|---|
image_path * | string | |
scene | string |
cdoc_history_list
列出历史记录:回收站文件 或 文档历史版本。 source: trash(回收站)| version(版本历史,需传 file_id) limit: 数量限制 offset: 分页偏移(仅 trash) file_id: 文档 ID(仅 version 需要)
| Parameter | Type | Description |
|---|---|---|
file_id | string | |
limit | integer | |
offset | integer | |
source | string |
cdoc_history_restore
恢复文件:从回收站还原 或 回滚到指定版本。 file_id: 文件 ID source: trash | version version: 版本号(仅 version 需要,≥1)
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
source | string | |
version | integer |
cdoc_history_destroy
⚠️ 危险操作(不可逆):彻底删除回收站文件。执行前必须向用户二次确认。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_element_read
【免密钥】读取智能画布元素。 file_id: 文档 ID element_id: 元素 ID(空则返回全量结构化数据) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
element_id | string |
cdoc_element_insert
【免密钥】在指定位置插入新元素。 file_id: 文档 ID element_type: text / heading / image / table / divider / code / quote content: 元素内容 position: 插入位置(-1 末尾) attributes: JSON 字符串(可选,如 {"level": 2}) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
content * | string | |
element_type * | string | |
file_id * | string | |
attributes | string | |
position | integer |
cdoc_element_update
【免密钥】更新指定元素。 file_id: 文档 ID element_id: 元素 ID content: 新内容 attributes: JSON 字符串(可选) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
content * | string | |
element_id * | string | |
file_id * | string | |
attributes | string |
cdoc_element_delete
【免密钥】删除指定元素。 file_id: 文档 ID element_id: 元素 ID 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
file_id * | string |
cdoc_element_append_md
【免密钥】向文档末尾追加 Markdown 内容(增量,不改已有内容)。 file_id: 文档 ID markdown_content: Markdown 内容 position: 插入位置(-1 末尾) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
markdown_content * | string | |
position | integer |
cdoc_space_tree
【免密钥】列出空间目录树(递归)。 folder_id: 文件夹 ID(空字符串表示根目录) depth: 递归深度(默认 3 层) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
depth | integer | |
folder_id | string |
cdoc_space_tree_visualize
【免密钥】目录可视化(JSON/Markdown 树形)。 folder_id: 文件夹 ID(空字符串表示根目录) format: json | markdown 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
folder_id | string | |
format | string |
cdoc_space_node_create
【免密钥】创建链接节点(快捷方式/引用)。 parent_id: 父文件夹 ID name: 节点名称 target_id: 目标文件/文件夹 ID node_type: shortcut | reference 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
name * | string | |
parent_id * | string | |
target_id * | string | |
node_type | string |
cdoc_space_delete_recursive
⚠️ 危险操作:递归删除文件夹及其所有子内容。 folder_id: 要删除的文件夹 ID dry_run: True 时仅预览不执行(默认安全模式) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
folder_id * | string | |
dry_run | boolean |
cdoc_content_search
【免密钥】全文搜索文档内容(搜内容+结果定位高亮)。 query: 搜索关键词 file_id: 限定搜索范围(空字符串搜索全部文档) limit: 返回结果数量限制 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
query * | string | |
file_id | string | |
limit | integer |
cdoc_content_search_in_document
【免密钥】在指定文档内搜索,返回匹配行及上下文。 file_id: 文档 ID query: 搜索关键词 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
query * | string |
cdoc_file_delete_unified
文件删除统一入口(合并软删除/彻底删除/直接删除)。 file_id: 文件 ID force: True 时直接彻底删除(跳过回收站,⚠️ 需二次确认) from_trash: True 时从回收站彻底删除;False 时软删除到回收站 用法: delete(file_id) → 软删除到回收站 delete(file_id, from_trash=True) → 从回收站彻底删除 delete(file_id, force=True) → 直接彻底删除(⚠️) 需配置开放平台凭证 后可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
force | boolean | |
from_trash | boolean |
cdoc_local_ocr_extract
【免密钥】本地 OCR 提取图片文字:强制本地 Tesseract(数据不出域)。 未安装 Tesseract 给出安装指引,不调用任何外部 API。
| Parameter | Type | Description |
|---|---|---|
image_path * | string | |
lang | string |
cdoc_category_resolve
【免密钥】品类识别:根据用户输入自动识别文档品类(9 品类)。 返回品类 ID、名称、子类型、编辑方式。本地规则引擎,零配置可用。
| Parameter | Type | Description |
|---|---|---|
user_input * | string |
cdoc_category_list
【免密钥】列出所有可用品类(9 品类)。 本地规则引擎,零配置可用。
cdoc_block_list
【免密钥】拉取文档块列表(段落级编辑基础)。 file_id: 文档 ID 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
cdoc_block_replace
【免密钥】按 block_id 替换块内容。 file_id: 文档 ID block_id: 块 ID content: 新内容 block_type: paragraph / heading / list / table / code / quote / divider 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
content * | string | |
file_id * | string | |
block_type | string |
cdoc_block_insert
【免密钥】按 block_id 插入新块。 file_id: 文档 ID block_id: 参考块 ID content: 新块内容 position: after(之后)/ before(之前) block_type: paragraph / heading / list / table / code / quote / divider 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
content * | string | |
file_id * | string | |
block_type | string | |
position | string |
cdoc_block_delete
【免密钥】按 block_id 删除块。 file_id: 文档 ID block_id: 块 ID 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
file_id * | string |
cdoc_block_move
【免密钥】按 block_id 移动块。 file_id: 文档 ID block_id: 要移动的块 ID target_block_id: 目标块 ID position: after / before 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
file_id * | string | |
target_block_id * | string | |
position | string |
cdoc_page_swap
【免密钥】替换演示文稿中的指定页(自动选择页级更新或整文件替换)。 file_id: 在线文档 ID source_path: 原始 PPTX 本地路径 page_number: 页码(从1开始) title: 新页面标题 bullets: 新页面要点(每行一个) layout: 页面布局(title_and_content / title_only / blank) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
page_number * | integer | |
source_path * | string | |
bullets | string | |
layout | string | |
title | string |
cdoc_quota_check
【免密钥】检查当前配额状态(按天计数,500 次/天限制)。 返回剩余配额、使用率、状态。 本地模式,零配置可用。
cdoc_quota_dashboard
【免密钥】获取配额看板(配额+令牌桶+硬件+小时分布+建议)。 本地模式,零配置可用。
cdoc_quota_batch_params
【免密钥】计算安全的批量任务参数(硬件自适应削峰)。 total_items: 总任务数 返回 workers、batch_chunk、预估时间、建议。 本地模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
total_items * | integer |
cdoc_office_convert_enhanced
【免密钥】格式转换(云端优先 → 本地兜底)。 file_id: 在线文档 ID source_path: 源文件本地路径 target_format: pdf / jpg / png / txt / docx / xlsx / pptx / html / md v3.9.0 新增:补齐 jpg/png/txt 三类目标格式,全量覆盖参数校验与失败降级链。 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
source_path * | string | |
target_format * | string |
cdoc_bridge_status
【免密钥】获取桥接状态(本地办公套件安装状态、映射数量)。 本地模式,零配置可用。
cdoc_bridge_download
【免密钥】下行:拉取云端文档到本地临时目录。 file_id: 文档 ID file_name: 文件名 file_type: doc / sheet / ppt 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
file_name | string | |
file_type | string |
cdoc_bridge_process
【免密钥】下行:调用 本地套件脚本处理本地文档。 file_id: 文档 ID action: analyze / convert / format / extract params: JSON 字符串(可选) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
action * | string | |
file_id * | string | |
params | string |
cdoc_bridge_upload
【免密钥】上行:将本地文件上传覆盖云端。 file_id: 文档 ID local_path: 本地文件路径(空则使用映射中的路径) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
local_path | string |
cdoc_bridge_sync
【免密钥】上行:同步本地文件到云端(检查 mtime 变化)。 file_id: 文档 ID(空则同步所有变化的文档) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
file_id | string |
cdoc_form_analyze
【免密钥】分析表单答卷(按题统计、交叉分析、未填名单)。 form_id: 表单 ID limit: 答卷数量限制 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
form_id * | string | |
limit | integer |
cdoc_form_export
【免密钥】导出答卷(CSV / Excel)。 form_id: 表单 ID format: csv / xlsx output_path: 输出路径(空则使用临时目录) 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
form_id * | string | |
format | string | |
output_path | string |
cdoc_form_chart_data
【免密钥】生成图表数据(供前端渲染)。 form_id: 表单 ID 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
form_id * | string |
cdoc_form_write_to_doc
【免密钥】将统计结果写回智能文档表格。 form_id: 表单 ID target_doc_id: 目标智能文档 ID 本地降级模式,零配置可用。
| Parameter | Type | Description |
|---|---|---|
form_id * | string | |
target_doc_id * | string |
od_word_create
创建 Word 文档(.docx)。 title: 文档标题 body: 正文内容,可省略;传入时会在创建后自动追加到文末 filepath: 输出路径,留空则生成到默认目录(桌面或当前目录)
| Parameter | Type | Description |
|---|---|---|
title * | string | |
body | string | |
filepath | string |
od_word_edit
向已有 Word 文档插入文本。 file: .docx 路径 text: 要插入的文本 position: start=开头 / end=结尾 / replace=替换全文
| Parameter | Type | Description |
|---|---|---|
file * | string | |
text * | string | |
position | string |
od_word_format
设置 Word 文档格式(字体/字号/对齐/加粗/颜色/首行缩进)。 file: .docx 路径 align: left / center / right / justify first_indent: 首行缩进(字符数,中文正文常用 2)
| Parameter | Type | Description |
|---|---|---|
file * | string | |
align | string | |
bold | boolean | |
color | string | |
first_indent | number | |
font | string | |
size | integer | |
space_after | number |
od_word_export
把 Word 文档导出为 PDF。 file: .docx 路径 format: 目标格式,默认 pdf
| Parameter | Type | Description |
|---|---|---|
file * | string | |
format | string |
od_word_longdoc
长文档排版(长报告/论文/标书的自动化排版入口)。 action: analyze=分析结构 / toc=目录 / header=页眉页脚 / numbering=标题编号 / fig-index=图表索引 / xref=交叉引用 / format=仅套用样式 / all=全部执行 / preview=预览不落盘 preset: 排版预设,如 thesis(论文)、report(报告) max_level: 目录/编号的最大标题层级
| Parameter | Type | Description |
|---|---|---|
file * | string | |
action | string | |
max_level | integer | |
output | string | |
preset | string |
od_md_convert
Markdown 转 Word / PPT。单文件传 file,批量传 dir。 format: docx 或 pptx
| Parameter | Type | Description |
|---|---|---|
dir | string | |
file | string | |
format | string | |
output | string | |
output_dir | string |
od_doc_translate
文档翻译(Word 文档整体翻译,保留排版)。单文件传 file,批量传 input_dir。 source: 源语言,auto 为自动检测 target: 目标语言,如 zh / en
| Parameter | Type | Description |
|---|---|---|
file | string | |
input_dir | string | |
output | string | |
output_dir | string | |
source | string | |
target | string |
od_excel_create
创建 Excel 工作簿(.xlsx)。 name: 工作簿名称 sheets: 工作表名,逗号分隔,如 "Q1,Q2,Q3" data: 初始数据 JSON,格式 {"Sheet1": [["A", 1], ["B", 2]]}
| Parameter | Type | Description |
|---|---|---|
name * | string | |
data | string | |
filepath | string | |
sheets | string |
od_excel_data
Excel 数据写入。 action: input=写入区域数据 / formula=写入公式 / add-sheet=新增工作表 data: input 用,JSON 数组 [["列1","列2"],["值1","值2"]] cell / formula: formula 用,如 cell="C1"、formula="=SUM(A1:B1)" headers: add-sheet 用,逗号分隔的表头
| Parameter | Type | Description |
|---|---|---|
action * | string | |
file * | string | |
cell | string | |
data | string | |
formula | string | |
headers | string | |
sheet | string |
od_excel_query
Excel 查询与统计(排序 / 筛选 / 聚合)。 action: sort=排序 / filter=筛选 / stats=统计 sorts: sort 用,JSON [{"column":"金额","ascending":false}] conditions: filter 用,JSON [{"column":"金额","op":">","value":"1000"}] logic: 多条件组合方式,AND 或 OR stat_type: stats 用,SUM / AVG / COUNT / MAX / MIN / COUNTA
| Parameter | Type | Description |
|---|---|---|
action * | string | |
file * | string | |
column | string | |
conditions | string | |
logic | string | |
sheet | string | |
sorts | string | |
stat_type | string |
od_excel_chart
Excel 图表:智能推荐或直接生成。 action: auto=分析+推荐+生成 / analyze=仅分析数据特征 / recommend=仅推荐图表类型 / generate=按指定类型生成 chart_type: generate 用,bar / line / pie / column data_range: 数据范围,如 A1:B10
| Parameter | Type | Description |
|---|---|---|
file * | string | |
action | string | |
chart_type | string | |
data_range | string | |
output | string | |
sheet | string | |
title | string |
od_excel_analyze
Excel 深度分析。 action: profile=数据概览 / fix-formulas=修复公式 / pivot=透视分析 / predict=趋势预测 / nl2formula=自然语言转公式 / clean=数据清洗 / nl-analyze=自然语言问答式分析 column: predict 的预测列 method: 预测方法,auto / moving_avg / exponential / linear query: nl2formula 或 nl-analyze 的自然语言问题
| Parameter | Type | Description |
|---|---|---|
file * | string | |
action | string | |
agg_func | string | |
col_field | string | |
column | string | |
method | string | |
query | string | |
row_field | string | |
sheet | string | |
steps | integer | |
value_field | string |
od_excel_formula
Excel 公式解释器(反向解析:把公式翻译成人话)。 三选一入参:直接传 formula;或传 file+cell 解释某个单元格;或传 file+sheet 解释整表。
| Parameter | Type | Description |
|---|---|---|
cell | string | |
file | string | |
formula | string | |
sheet | string |
od_excel_invoice
发票识别并生成 Excel 台账(本地 OCR,PDF/图片均可)。 input_path: 发票文件路径(PDF 或图片) output: 输出 .xlsx 路径,留空则与输入同目录
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
output | string |
od_ppt_create
创建 PPT 演示文稿(.pptx)。 slides: 各页标题,逗号分隔;留空则只建封面
| Parameter | Type | Description |
|---|---|---|
title * | string | |
filepath | string | |
slides | string |
od_ppt_edit
编辑 PPT:加页 / 插入内容 / 换主题 / 导出。 action: add-slide=新增幻灯片 / insert=向指定页插入内容 / theme=套用主题 / export=导出 theme: business / tech / minimal
| Parameter | Type | Description |
|---|---|---|
action * | string | |
file * | string | |
content | string | |
format | string | |
layout | string | |
slide | integer | |
theme | string | |
title | string |
od_ppt_from_docx
把 Word / Markdown / 大纲 一键转成 PPT。 input_path: 输入文件路径(.docx / .md / 纯文本) source_type: auto / word / markdown / mindmap / text;为 auto 或 word 时走 docx-to-ppt 通道,其余走 generate 多格式通道 theme: business / tech / minimal
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
output | string | |
source_type | string | |
theme | string | |
title | string |
od_file_info
读取文档信息(按扩展名自动路由到 Word / Excel / PPT)。 file: 文档路径,支持 .docx / .xlsx / .pptx
| Parameter | Type | Description |
|---|---|---|
file * | string |
od_convert
办公文档格式互转(Word / Excel / PPT / PDF)。单文件传 input_path,批量传 input_dir。 output_format: 目标格式,如 pdf、docx、xlsx、pptx input_format: 批量转换时的源格式,如 docx
| Parameter | Type | Description |
|---|---|---|
input_dir | string | |
input_format | string | |
input_path | string | |
output_format | string |
od_template
文档模板管理:列出 / 获取 / 填充 / 添加 / 导出 / 导入。 action: list=列出模板 / get=查看模板 / fill=填充模板生成文件 / add=添加自定义模板 / remove=删除 / export=导出分享包 / import=导入分享包 / generate=按内置模板生成示例文件集 data: fill 用,JSON 格式 {"占位符": "值"}
| Parameter | Type | Description |
|---|---|---|
action * | string | |
category | string | |
data | string | |
name | string | |
output | string | |
output_dir | string | |
package_dir | string | |
source | string | |
target_dir | string |
od_engine
运行环境检测与维护。 action: engine-info=查看当前引擎与硬件 / com-health=COM 健康自检与残留清理 / check-update=检查更新 check: com-health 的检查级别,full 或 quick
| Parameter | Type | Description |
|---|---|---|
action | string | |
check | string |