wa_send_file
Send a file to an allowlisted recipient with automatic filename sanitization, type/size validation, and secret scanning on captions. Requires optional confirm token for sending.
Instructions
Send a file to an allowlisted recipient. The filename is auto-sanitized to an ASCII-safe name (so WhatsApp shows a real name, not 'Untitled', and no path traversal is possible), the type/size are validated, and the caption is secret-scanned. Sending files may require a confirm_token (see wa_preview).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | ||
| file_path | Yes | ||
| recipient | Yes | ||
| confirm_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||