send_file
Deliver images, audio, video, or documents over WhatsApp by specifying a recipient phone number or group JID and the absolute media file path.
Instructions
Send a file (image / raw audio / video / document) via WhatsApp. For group messages use the JID.
Args: recipient: The recipient — either a phone number with country code but no + or other symbols, or a JID (e.g., "123456789@s.whatsapp.net" or a group JID like "123456789@g.us") media_path: The absolute path to the media file to send (image, video, document)
Returns: A dictionary containing success status and a status message
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": {
"recipient": "<recipient>",
"media_path": "<media_path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipient | Yes | ||
| media_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||