Handle Media with WhatsApp MCP
mainSending Media
- Files (Images, Videos, Documents): Use the
send_filetool. - Voice Messages: Use the
send_audio_messagetool. For best results, use.oggOpus files. If FFmpeg is installed, the server will automatically convert other formats (MP3, WAV, etc.) to Opus. Without FFmpeg, you must usesend_fileto send raw audio files, but they will not appear as playable voice messages.
Downloading Media
By default, the local database only stores media metadata. To access the actual file, use the download_media tool. You will need the message_id and chat_jid (provided in the message metadata) to download the media and retrieve its local file path.