wecomcli-manage-doc

Create, read, and edit WeCom documents and smart sheets via the wecom-pro CLI.

3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Liangdi/wecom-pro --skill wecomcli-manage-doc-liangdi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wecomcli-manage-doc
Source: https://github.com/Liangdi/wecom-pro/tree/main/skills/wecomcli-manage-doc
Command: npx skills add https://github.com/Liangdi/wecom-pro --skill wecomcli-manage-doc-liangdi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wecom-pro, and includes references (resource) components.

What problem does it solve? Managing WeCom (企业微信) documents programmatically requires handling asynchronous export tasks, docid/URL resolution, and Markdown-based content overwrites, which is tedious to script manually against raw APIs. ## Core Features & Use Cases - Document Content Export: Retrieve full document content in Markdown format using an asynchronous polling mechanism with task_id. - Document Creation: Create new documents (doc_type=3) or smart sheets (doc_type=10) and receive the docid and access URL. - Content Overwriting: Replace a document's entire body with Markdown content, addressing documents by either docid or URL. - Use Case: An AI agent can read a project report document, generate a weekly summary in Markdown, and write it into a newly created WeCom document, all through wecom-pro CLI commands. ## Quick Start Ask the agent to read the content of a WeCom document by running wecom-pro doc get_doc_content with the document's docid or URL.

Frequently Asked Questions about wecomcli-manage-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read the content of a WeCom document from the command line?▼

Run wecom-pro doc get_doc_content with the docid or URL and type set to 2 for Markdown output. The API is asynchronous: if task_done is false, call again with the returned task_id until task_done is true and the content field is populated.

How to create a new WeCom document or smart sheet with wecom-pro?▼

Run wecom-pro doc create_doc with doc_type 3 for a document or 10 for a smart sheet, plus a doc_name. The response returns a url and docid; the docid is only returned at creation time, so save it immediately.

Can I edit a WeCom document using its URL instead of docid?▼

Yes, all document interfaces accept either docid or url to locate the document. For editing, pass the url with content and content_type 1 to overwrite the document body in Markdown format.

Why does get_doc_content return no content on the first call?▼

The export API works asynchronously, so the first call only starts the task and returns a task_id with task_done false. Poll again with that task_id until task_done becomes true to receive the full Markdown content.

What are the limitations of editing WeCom documents with this tool?▼

Editing is a full overwrite operation that replaces the entire document body, and content_type only supports Markdown (value 1). It is recommended to call get_doc_content first to review existing content before overwriting.