Send a WhatsApp media message
send_mediaSend images, videos, audio files, or documents to WhatsApp chats or groups from a local file path or public URL. Include an optional caption, or send audio as a voice note.
Instructions
Send an image, video, audio file or document, from a local path on the machine running wazap or from a public URL. Exactly one of file_path / url. Maximum 100 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL to fetch and send | |
| 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 | |
| as_document | No | Send as a plain document instead of rendered media |