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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account. | |
| 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. | |
| remember | No | With confirm: true, also stop asking for this kind of action from now on. Only when the person said so ("don't ask again"). The person can revoke it in LMCP or with set_always_allowed. | |
| file_path | Yes | Absolute path to the local file to send |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||