wecomcli-doc
wecomcli-doc handles plain document operations within WeChat Work, enabling you to create blank documents, retrieve full content in Markdown, and replace document text. Locate documents by docid or direct URL link.
wecomcli-doc creates, reads, and overwrites plain documents in WeChat Work using Markdown format.
AI-generated summary based on this skill's SKILL.md
Install
WecomTeam/wecom-cli/wecomcli-doc · repository language: Rust
git clone https://github.com/WecomTeam/wecom-cli
cp -r wecom-cli/skills/wecomcli-doc ~/.claude/skills/wecomcli-docFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I create a new document in wecom?
wecomcli-doc lets you create blank plain documents directly in WeChat Work. Use the creation command with your WeChat Work credentials to initialize a new document. Once created, you'll receive a docid and shareable URL that you can use to access or manage the document later.
Can wecomcli-doc read wecom document content?
Yes. wecomcli-doc retrieves full document content from WeChat Work and exports it in Markdown format, making it easy to view, process, or integrate document text into other workflows. You can read content by docid or by providing a wecom document URL.
What's the best way to edit wecom documents?
wecomcli-doc supports overwriting or replacing document body content entirely. Provide your updated text and wecomcli-doc will replace the existing document content. This approach works well for bulk updates or programmatic edits via CLI automation.
How do I locate documents by docid or URL in wecomcli-doc?
wecomcli-doc accepts both docid and direct WeChat Work document URLs as input. Simply supply either identifier when you want to read, edit, or manage a specific document. The tool resolves both formats automatically.
Can wecomcli-doc automate document operations via CLI?
Yes. wecomcli-doc is designed as a command-line tool that integrates with WeChat Work, allowing you to script and automate plain document creation, content retrieval, and text replacement workflows without manual intervention.
Does wecomcli-doc support markdown export for wecom documents?
wecomcli-doc retrieves and exports WeChat Work document content in Markdown format by default. This makes it simple to convert wecom plain documents into portable, version-control-friendly text that works across other tools and platforms.
SKILL.md
rendered from the published skill — quoted content, verbatim
企业微信文档管理
> wecom-cli 是企业微信提供的命令行程序,所有操作通过执行 wecom-cli 命令完成。
资源型技能,负责普通doc文档的新建、内容读取与覆写。文档接口支持通过 docid 或 url 二选一定位文档。
URL 品类识别与接口路由
企业微信文档有多种品类,URL 格式不同,所用的接口/技能也不同。请通过 URL 严格区分:
| URL 模式 | 品类 | 处理方式 |
|---|---|---|
https://doc.weixin.qq.com/doc/* |
文档 | 本 skill |
https://doc.weixin.qq.com/sheet/* |
在线表格 | 参阅 wecomcli-sheet skill |
https://doc.weixin.qq.com/smartsheet/* |
智能表格 | 参阅 wecomcli-smartsheet skill |
https://doc.weixin.qq.com/smartpage/* |
智能文档(原名智能主页) | 参阅 wecomcli-smartpage skill |
调用方式
通过 wecom-cli 调用,品类为 doc:
wecom-cli doc <tool_name> '<json_params>'
返回格式说明
所有接口返回 JSON 对象,包含以下公共字段:
| 字段 | 类型 | 说明
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/wecomcli-doc/SKILL.md