Download an attachment
download_mediaRetrieve media from a stored WhatsApp message and save it to disk, with images also returned inline. Use the message ID to find the message.
Instructions
Download the media of a stored message to disk. Images are also returned inline.
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": {
"message_id": "<message_id>"
},
"name": "download_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Chat the message is in (speeds up lookup) | |
| message_id | Yes | Message id from get_messages / search_messages |