wecomcli-media

Upload and download WeCom media files via media_id using the wecom-cli tool.

287|46|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/YanHaidao/wecom --skill wecomcli-media-yanhaidao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wecomcli-media
Source: https://github.com/YanHaidao/wecom/tree/main/skills/wecomcli-media
Command: npx skills add https://github.com/YanHaidao/wecom --skill wecomcli-media-yanhaidao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working with WeCom (Enterprise WeChat) workflows, media files are referenced by opaque media_id values that cannot be used directly as local files. This Skill bridges that gap by downloading media_id-referenced files to local paths and uploading local files to obtain media_id values for use by other business skills like email and WeDrive. ## Core Features & Use Cases - Media Download: Download any media file to a local file path by providing its media_id, returned by other skills such as email attachments or embedded images. - Media Upload: Upload a local file to obtain a media_id, media type, and creation timestamp for downstream use, such as supplying file_content_media to WeDrive uploads. - Use Case: An email skill returns a media_id for an attachment. Use this Skill to download it to a local file_path, then read the file content directly from that path. ## Quick Start Ask the assistant to download the WeCom media file with a given media_id to a local path, or upload a local file to get its media_id.

Frequently Asked Questions about wecomcli-media

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

FAQPage Schema
How do I download a WeCom media file using media_id?

Call the wecom-cli tool with the media download command and pass the media_id as a JSON argument. The command returns a local file_path that you can read directly to view the file content.

How to upload a local file to WeCom and get a media_id?

Invoke wecom-cli media upload with a JSON payload containing the local file_path. The response returns the media type, the new media_id, and a creation timestamp for use by other skills such as WeDrive uploads.

Can I use a URL instead of media_id to download WeCom files?

No, the download interface only accepts genuine media_id values and rejects URLs. Links matching the work.weixin.qq.com filepreview security pattern are encrypted anti-leak resources that cannot be downloaded and must be opened in the WeCom client.

Does this skill parse or read the content of downloaded files?

No, it only handles file transfer between media_id and local paths. After downloading, read the file content directly through the returned file_path using other means such as document parsing tools.

What should I do before calling wecom-cli for the first time?

You must complete the wecomcli-preflight skill checks to confirm the wecom-cli tool is whitelisted. All operations go through the wecom-cli tool with args parameters, never through shell or terminal commands.