wecom-send-media

Sends local files to WeCom users via MEDIA directive messages.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working in a WeCom (Enterprise WeChat) conversation, generated or existing local files such as images, videos, voice recordings, and documents need to be delivered to the user. This Skill provides the exact MEDIA directive syntax and delivery rules so files are sent as proper WeCom messages instead of the assistant incorrectly claiming it cannot send files. ## Core Features & Use Cases - MEDIA Directive Delivery: Send local files by placing MEDIA: <absolute path> on its own line; the system auto-detects the file type and sends it as an image, video, voice, or file message. - Size and Format Guardrails: Enforces limits of 10 MB for images and videos, 2 MB for AMR-only voice, and 20 MB for general files, with automatic downgrade of oversized video/voice to file messages. - Use Case: After generating a chart or report in ~/.openclaw/workspace/, deliver it directly to the current WeCom user by replying with a short note plus MEDIA: ~/.openclaw/workspace/report.pdf. ## Quick Start Send the generated file to the current WeCom user by replying with a short note followed by the MEDIA directive and the file's absolute path on its own line.

Frequently Asked Questions about wecom-send-media

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

FAQPage Schema
How do I send a local file to a WeCom user?

Place the MEDIA directive followed by the file's absolute path on its own line in your reply, for example MEDIA: ~/.openclaw/workspace/report.pdf. The system detects the file type and sends it as the matching WeCom message type.

What file size limits apply when sending media in WeCom?

Images and videos are limited to 10 MB, voice messages to 2 MB, and general files to 20 MB. Files exceeding 20 MB cannot be sent and must be compressed or split first.

Does WeCom voice messaging support MP3 or WAV files?

No, voice messages only support the AMR format with a .amr extension. Non-AMR audio files are automatically sent as regular file messages instead of voice messages.

What happens if a video exceeds the WeCom size limit?

Videos or voice files over their size limits are automatically downgraded and sent as file messages. Files over the 20 MB hard cap cannot be sent at all, so compress or split them first.

Why should I not use wecom-cli message to deliver files in the current chat?

The MEDIA directive is the designated mechanism for delivering files in the current conversation reply. wecom-cli message is intended for proactively sending messages to other selected WeCom conversations, not for in-reply file delivery.