whatsapp_send_document
Send a document file to a WhatsApp recipient using base64 data or a direct URL. Requires recipient ID and filename. Supports optional caption, mentions, reply-to, and expiry settings.
Instructions
Send a document file. Provide either data (base64) or url. Filename is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient JID | |
| data | No | Base64 encoded document data | |
| url | No | URL of the document | |
| filename | Yes | Filename shown to recipient | |
| mimeType | No | MIME type (auto-detected if omitted) | |
| caption | No | Caption for the document | |
| mentions | No | ||
| replyTo | No | ||
| replyToSenderId | No | ||
| isForwarded | No | ||
| ephemeralExpiration | No |