send_media
Send media files such as images, videos, audio, or documents to WhatsApp contacts using a URL or base64 data.
Instructions
Send image/video/audio/document by URL or base64.
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>",
"type": "<type>"
},
"name": "send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Phone number or JID | |
| url | No | ||
| type | Yes | ||
| base64 | No | ||
| caption | No | ||
| fileName | No |