WhatsApp Send File
whatsapp_send_fileSends a file attachment to a WhatsApp chat. The chat_id MUST come from a previous whatsapp_list_chats call — never fabricate IDs. file_path must be an absolute path to a local file. This is a write operation: the first call (confirm=false) returns a preview without sending; set confirm=true to actually send. ⚠️ Uses Wacli (unofficial WhatsApp client). Accounts may be restricted for ToS violations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Optional caption text to accompany the file | |
| chat_id | Yes | Chat ID from whatsapp_list_chats | |
| confirm | No | Must be true to actually send. Without it, returns a preview. | |
| file_path | Yes | Absolute path to the local file to send |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||