wa_download_media
Downloads media from a recent WhatsApp message and saves it to a local file, letting AI agents retrieve images, videos, audio, documents, or stickers by chat and message ID.
Instructions
Download the media (image/video/audio/document/sticker) from a recent incoming or outgoing message in a chat and save it to a local file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat": "<chat>",
"message_id": "<message_id>"
},
"name": "wa_download_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Phone number or group JID the message is in | |
| out_path | No | Where to save the file (default: ./downloads/<message_id>) | |
| message_id | Yes | Message id (stanzaId) — find it via wa_read_messages |