Loading...
Loading...
WeCom Media File Upload/Download Skill. Handles two types of operations: downloading media files to local based on media_id, and uploading local files to obtain media_id. When other skills (such as WeCom Disk, Email, etc.) return a media_id that needs to be saved as a local file, or when an existing local file needs to be converted to a media_id for use by other skills, you must first read this skill to get complete guidelines and not handle it based on memory. This skill does not parse/identify file content, only responsible for file transfer.
npx skill4agent add wecomteam/wecom-cli wecomcli-mediaBefore executing anycommand, you must first read and complete the common pre-checks of thewecom-cliskill.wecomcli-shared
media_idmedia_idmedia_iduploadmedia_idmedia_idmedia_idmedia_idmedia_idfile_pathfile_pathmedia_idmedia_idmedia_idmedia_iduploadmedia_idmedia_idwecom-cli media download --json '{"media_id": "MEDIA_ID"}'| Field | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| Field | Type | Description |
|---|---|---|
| string | Local file path after successful download |
file_pathmedia_idattach_urlmedia_idwork.weixin.qq.com/filepreview/security/media_idwecom-cli media upload --json '{"file_path": "/tmp/example.pdf"}'| Field | Type | Required | Description |
|---|---|---|---|
| string | Yes | Local path of the file to be uploaded |
| Field | Type | Description |
|---|---|---|
| string | Media type: |
| string | |
| string | Creation time, format: |
media_idfile_pathmedia_idfile_pathfile_pathdownloadfile_pathmedia_idfile_path| Dependency Scenario | Description |
|---|---|
| For |
| When uploading files to WeCom Disk, if |
When parameters are missing / intent is unclear, ask the user clearly in natural language, do not guess.