send_file
Send files like images, videos, audio, or documents through WhatsApp with optional captions and custom file names.
Instructions
Send a file (image, video, audio, document) via WhatsApp.
Args:
to: Recipient phone number or JID
file_path: Path to the file on the server
caption: Optional caption for the file
filename: Optional display name (defaults to file basename)
mime: Optional MIME type override
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>",
"file_path": "<file_path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| file_path | Yes | ||
| caption | No | ||
| filename | No | ||
| mime | No |