name: qiwei-official-doc
本技能只处理 URL 形如 https://doc.weixin.qq.com/doc/* 的普通文档,通过 qiwei_official_* MCP 工具调用官方 CLI。
以下类型不由本技能直接处理:
| URL | 类型 |
|---|---|
/sheet/* |
在线表格 |
/smartsheet/* |
智能表格 |
/smartpage/* |
智能文档 |
qiwei_official_status;qiwei_official_prepare;qiwei_official_help 核对当前方法参数。| 意图 | category | method |
|---|---|---|
| 创建普通文档 | doc |
create_doc |
| 读取 Markdown 内容 | doc |
get_doc_content |
| 用 Markdown 覆写正文 | doc |
edit_doc_content |
创建普通文档时:
{
"category": "doc",
"method": "create_doc",
"args": {
"doc_type": 3,
"doc_name": "项目周报"
}
}
create_doc 只创建空白文档。用户同时给出正文时,创建成功后再调用 edit_doc_content 写入 Markdown。返回 docid 和 URL。
使用 docid 或 URL 二选一定位,type 固定为 2:
{
"docid": "DOC_ID",
"type": 2
}
读取是异步任务:
task_id;task_done=false 时保存返回的 task_id;task_id 继续调用;task_done=true 后返回完整 Markdown 内容。edit_doc_content 会替换全部正文,参数中的 content_type 固定为 1。
执行前:
再调用:
{
"category": "doc",
"method": "edit_doc_content",
"args": {
"docid": "DOC_ID",
"content": "# 新正文",
"content_type": 1
}
}
在 4320 Dashboard 的“知识库 → 企微文档知识沉淀 → 文档工作台”中执行:
get_doc_content 返回的异步任务持续使用同一 task_id,完成后再保存;outputs/knowledge/docs/;851002 incompatible doc type:重新识别 URL 类型,不要继续用普通文档方法;qiwei_login_*;qiwei_official_help;