send_file
Send a local image, video, or document with an optional caption to a WhatsApp recipient, limited to allowed media folders and subject to approval rules.
Instructions
Send a local file (image, video, document) with an optional caption.
The file must be inside downloads_dir or exports_dir (always allowed) or a folder listed in sending.allowed_media_dirs; store_dir and the config file are never sent. Recipient rules and approval as in send_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": {
"to": "<to>",
"path": "<path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| path | Yes | ||
| account | No | Account from list_accounts when several WhatsApp numbers are set up; default: default | |
| caption | No | ||
| confirm | No | ||
| mentions | No | ||
| reply_to | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||