send_file
Send pictures, videos, documents, or audio files via WhatsApp to individuals or groups using file paths. Include optional captions, view-once settings, and read receipts.
Instructions
Send a picture, video, document, or raw audio via WhatsApp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Optional caption for image/video/document | |
| mark_chat_read | No | On successful send, ack recent incoming messages so the phone drops the unread badge. | |
| media_path | Yes | absolute path to the media file (must sit under the configured media root) | |
| recipient | Yes | Send target: phone digits, `<digits>@s.whatsapp.net`, or group `<digits>-<timestamp>@g.us` | |
| view_once | No | If true, mark image/video/audio submessages as view-once. Silently ignored for documents. |