send_file
Send files (image, video, document, audio) to a WhatsApp recipient by providing phone number and file path. Optionally add a caption.
Instructions
Send a file (image, video, document, audio) via WhatsApp.
Args:
target: Recipient phone number with country code, no + (e.g. "85264318721")
file_path: Absolute path to the file or a URL
caption: Optional caption for the file
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": {
"target": "<target>",
"file_path": "<file_path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| file_path | Yes | ||
| caption | No |