download_media
Downloads media from a WhatsApp message and returns its local file path, so assistants can save attachments by message ID and chat JID.
Instructions
Download media from a WhatsApp message and get the local file path.
Args:
message_id: The ID of the message containing the media
chat_jid: The JID of the chat containing the message
Returns:
A dictionary containing success status, a status message, and the file path if successful
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>",
"chat_jid": "<chat_jid>"
},
"name": "download_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_jid | Yes | ||
| message_id | Yes |