WhatsApp Save Media
whatsapp_save_mediaSaves the media of one WhatsApp message (a document such as PDF, DOCX or XLSX, an image, a video, or a voice note/audio) as a file in a local folder. chat_id and message_id come from whatsapp_read_messages or whatsapp_search_messages (a message whose media field is set). It never replaces a file: if the name is taken, it saves as «name (2).ext» and says so.
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_id": "<chat_id>",
"message_id": "<message_id>"
},
"name": "whatsapp_save_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account. | |
| chat_id | Yes | Chat ID of the message, from whatsapp_read_messages | |
| message_id | Yes | message_id of the message that carries the media, from whatsapp_read_messages | |
| destination | No | Folder to save the file into. Defaults to the Downloads folder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||