send_media
Send WhatsApp image, video, audio, or document messages with an optional caption by providing the recipient number and a public media URL.
Instructions
Submit a WhatsApp media message (image, video, audio, or document) with an optional caption.
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>",
"url": "<url>",
"type": "<type>"
},
"name": "send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Phone number with country code | |
| url | Yes | Publicly accessible URL of the media file | |
| type | Yes | Media type | |
| caption | No | Optional caption text | |
| fileName | No | Optional file name, especially for documents |