weixin_send_media
Uploads a local file or HTTP(S) URL to the Weixin CDN and sends it as an image, video, or file attachment, with an optional caption sent first.
Instructions
Upload a local file (or an http(s) URL) to the Weixin CDN and send it as an image, video, or file attachment. Optional caption is sent as a separate text message first. Requires a prior CLI login.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "weixin_send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient id, usually id@im.wechat. Defaults to the last inbound peer. | |
| url | No | http(s) URL to download and then upload. Ignored if path is set. | |
| path | No | Absolute or relative path of a local file on this machine. | |
| type | No | Override automatic type detection from the file extension or bytes. | |
| caption | No | Optional text sent as a separate message before the media. | |
| context_token | No | Override the cached context_token. |