Draft a WhatsApp media message
send_mediaDraft WhatsApp media from a local file path or public URL, preview it, then confirm before sending. Supports images, video, audio, documents, and GIFs up to 100 MB.
Instructions
Draft an image, video, audio file, document or GIF, from a local path on the machine running wazap or from a public URL. Does not send. Exactly one of file_path / url. Maximum 100 MB. Show the preview; after the user says yes, call confirm_send. A GIF is sent with as_gif: an mp4 goes out looping, a .gif is converted to mp4 first (needs ffmpeg on the machine running wazap).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL to fetch and send | |
| as_gif | No | Send a .gif or an mp4 as a looping GIF, the way WhatsApp plays them | |
| caption | No | Text shown under the media | |
| chat_id | Yes | Chat id as returned by another tool ("<digits>@s.whatsapp.net" or "<id>@g.us"), or a phone number in international format | |
| as_voice | No | Send an audio file as a voice note (push-to-talk) | |
| file_path | No | Absolute path of a local file to send | |
| account_id | No | Registry account id (default, work, …). Omit to resolve from chat_id or message_id, or the default account. | |
| as_document | No | Send as a plain document instead of rendered media |