Send WhatsApp media (image/audio/document)
whatsapp_send_mediaSend an image, audio file, or document to a WhatsApp contact from a local path or http(s) URL, with optional caption, filename, and voice-note delivery.
Instructions
Send an image, audio, or document from a local path or http(s) URL to a contact.
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": {
"contact": "<contact>",
"media_type": "<media_type>",
"source": "<source>"
},
"name": "whatsapp_send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Local file path or http(s) URL of the media file | |
| caption | No | ||
| contact | Yes | Contact: saved name, phone number with country code (e.g. 919876543210), or full JID (e.g. 919876543210@s.whatsapp.net) | |
| file_name | No | For documents; default = basename of source | |
| media_type | Yes | ||
| as_voice_note | No | For audio: send as a voice note (ptt) |