send_file
Send files like images, videos, audio, or documents through WhatsApp with optional captions and custom file names.
Instructions
Send a file (image, video, audio, document) via WhatsApp.
Args:
to: Recipient phone number or JID
file_path: Path to the file on the server
caption: Optional caption for the file
filename: Optional display name (defaults to file basename)
mime: Optional MIME type overrideInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| file_path | Yes | ||
| caption | No | ||
| filename | No | ||
| mime | No |