weixin_send_file
Send file attachments to WeChat users using a local file path or URL, with optional caption and context token.
Instructions
Send a file attachment to a WeChat user. Source can be a local file path or URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "<to>",
"source": "<source>"
},
"name": "weixin_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient user ID (full or short prefix) | |
| source | Yes | File source: local file path or URL | |
| caption | No | Optional text caption to send with the file | |
| context_token | No | Optional context_token to link reply |