waha_send_file
Send documents or files to WhatsApp chats using local file paths or URLs, with options for captions and custom filenames.
Instructions
Send a document/file to a WhatsApp chat (from local file OR URL)
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": {
"chatId": "<chatId>"
},
"name": "waha_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Chat ID | |
| filePath | No | Local file path (e.g., "/tmp/document.pdf") | |
| fileUrl | No | URL of the file to send (can be HTTP URL or data: URL) | |
| mimetype | No | File MIME type (auto-detected if using filePath) | |
| filename | No | Display filename (auto-detected if using filePath) | |
| caption | No | File caption | |
| session | No | Session name | default |