download_media
Downloads media from a specified WhatsApp message to local disk and returns the saved file path for access or processing.
Instructions
Download media from a recent message to local disk and return the file path.
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": "download_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat: phone number like +911234567890, or a JID (…@s.whatsapp.net, …@g.us). | |
| save_dir | No | Directory to write into (default: <auth>/media). | |
| message_id | Yes | Id of the message whose media to download. |