send_audio_message
Send an audio file as a WhatsApp voice note. Non-ogg inputs are automatically transcoded via ffmpeg.
Instructions
Send an audio file as a WhatsApp voice note (waveform UI, push-to-play); non-ogg inputs are transcoded via ffmpeg before upload. Reversible via delete_message (revoke). Use send_file when you want the audio delivered as a regular attachment instead of a voice note. Prerequisites: ffmpeg must be on PATH for non-ogg inputs. Returns a JSON object {Success, Message, ID} where ID is the WhatsApp message ID on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mark_chat_read | No | if true, also ack recent incoming messages in the chat to clear the unread badge (defaults to false) | |
| media_path | Yes | absolute path to the audio file; must sit under the configured media root (`WHATSAPP_MCP_MEDIA_ROOT`, default `<store>/uploads/`) | |
| recipient | Yes | Send target: digits only (E.164 without `+`, no spaces or punctuation); or `<digits>@s.whatsapp.net`; or group `<digits>-<timestamp>@g.us` | |
| view_once | No | if true, mark the voice note as view-once (defaults to false) |