wecomcli-media

Downloads and uploads WeCom media files between local paths and media_id identifiers.

2.0k|291|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-media-pinvou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wecomcli-media
Source: https://github.com/Pinvou/pinvou-agent/tree/main/pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-media
Command: npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-media-pinvou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wecom-cli.

What problem does it solve? Enterprise WeChat (WeCom) workflows often require moving files between local storage and the platform's media system, where files are referenced by opaque media_id values. This Skill handles that conversion in both directions so other WeCom operations can consume or produce media_id references without manual file handling. ## Core Features & Use Cases - Media Download: Download a media file to a local path by providing its media_id, returning a file_path you can read directly. - Media Upload: Upload a local file (image, voice, video, or generic file) to obtain a media_id for use by other WeCom skills such as disk or email. - Use Case: A colleague emails you an attachment through WeCom mail. Another skill returns the attachment's media_id, and this Skill downloads it to a local file_path so you can read or process the document. ## Quick Start Download the WeCom media file with this media_id to a local path so I can read its contents.

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 by media_id?

Run wecom-cli media download with a JSON payload containing the media_id. The command returns a local file_path, which you can then read directly to view the file's contents.

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

Run wecom-cli media upload with the local file_path, optionally specifying a type of image, voice, video, or file. The response returns the media_id, media type, and creation timestamp for use by other WeCom operations.

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

No, the download command only accepts a genuine media_id and rejects URLs. Links such as attach_url or work.weixin.qq.com filepreview links are encrypted per-user resources that cannot be downloaded through this interface.

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

No, it only moves files between local storage and media_id references. After downloading, read the returned file_path directly with other tools for content extraction, OCR, or document parsing.

Where does the media_id come from for WeCom media downloads?

The media_id must come from an upload response, another business skill such as email or disk, or explicit user input. It must never be guessed or fabricated, and missing values should trigger a clarifying question.