Download WhatsApp Media
whatsapp_download_mediaDownload media (image, audio, video, document) attached to a WhatsApp message. Use after reading messages to fetch media by contact and message IDs.
Instructions
Download media (image, audio, video, document) from a WhatsApp message.
Fetches the media attached to a specific message and returns it directly:
Images: returned inline so Claude can see them
Audio: returned inline so Claude can process them
Video/documents: saved to /tmp/whatsapp-media/ and path returned
Use whatsapp_read_messages first to find messages with hasMedia=true, then pass the contactId and messageId here.
Note: Old media (weeks+) may no longer be available on WhatsApp's servers.
Args:
contactId: Phone digits or "*@g.us" — the contact whose chat contains the message
messageId: Message ID with media to download (from whatsapp_read_messages)
Returns:
For images: the image content directly (Claude can see it)
For audio: the audio content directly
For other files: file path where it was saved + metadata
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | Phone digits or "*@g.us" — chat that contains the media message | |
| messageId | Yes | Message ID with media to download |