Loading...
Loading...
WeCom document management skill. It provides document creation, reading and editing capabilities, and supports operating WeCom documents (doc_type=3) and smart sheets (doc_type=10) via docid or document URL. Applicable scenarios: (1) Export and obtain the full content of the document in Markdown format (asynchronous polling) (2) Create new documents or smart sheets (3) Overwrite document content in Markdown format. This Skill is triggered when users need to view document content, create new documents, or edit document body.
npx skill4agent add wecomteam/wecom-cli wecomcli-manage-docis a command-line program provided by WeCom, all operations are completed by executingwecom-clicommands.wecom-cli
docidurlwecom-clidocwecom-cli doc <tool_name> '<json_params>'| Field | Type | Description |
|---|---|---|
| integer | Return code, |
| string | Error message, which is |
errcode0errcodeerrmsgtask_idtask_idtask_donetask_idtask_donewecom-cli doc get_doc_content '{"docid": "DOCID", "type": 2}'wecom-cli doc get_doc_content '{"docid": "DOCID", "type": 2, "task_id": "xxx"}'wecom-cli doc get_doc_content '{"url": "https://doc.weixin.qq.com/doc/xxx", "type": 2}'wecom-cli doc create_doc '{"doc_type": 3, "doc_name": "项目周报"}'wecom-cli doc create_doc '{"doc_type": 10, "doc_name": "任务跟踪表"}'smartsheet_get_sheetcontent_type1wecom-cli doc edit_doc_content '{"docid": "DOCID", "content": "# 标题\n\n正文内容", "content_type": 1}'wecom-cli doc get_doc_content '{"docid": "DOCID", "type": 2}'task_donetask_idwecom-cli doc create_doc '{"doc_type": 3, "doc_name": "文档名"}'