download_media
Retrieves the stored file for a WhatsApp message by reusing a verified local copy or downloading it through the bridge into downloads_dir; expired media may require a new phone request.
Instructions
Get the file for one stored message. Reuses a verified local copy or downloads through the bridge into downloads_dir. Expired media may need a new phone request and up to 40 seconds. Returns chat, msg_id, kind and path. Use transcribe_chat_audio for speech or download_chat_media in the media toolset for a batch.
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 JID from list_chats (15550100001@s.whatsapp.net or 120363000000001@g.us), international phone number or chat name. | |
| account | No | Account name from list_accounts, such as work. Omit to use the default account. | |
| message_id | Yes | Opaque id from list_messages in this chat, such as ABC123. Copy it exactly. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||