whatsapp_get_media
Get a short-lived (15 min) HTTPS link to the media of one message (photo, voice note, audio, video, document) from LOCAL history. Requires message_id and chat (the chat JID, from whatsapp_messages). Returns { url, mime, size, name, expires_at }. The file is copied as-is to private storage for 7 days; ask again for a fresh link. On failure returns { success:false, error }: not_found (no media for that message), media_expired (WhatsApp no longer has the file), too_large (> 16 MB), unsupported_type, unsupported.
Bulk support: accepts message_ids for batched execution.
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": "<chat>"
},
"name": "whatsapp_get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| account | No | ||
| message_id | Yes | ||
| message_ids | No |