Download WhatsApp media
download-whatsapp-mediaDownloads photos, videos, voice notes, audio, documents, or stickers from a WhatsApp message by chat ID and message ID, returning small files inline or a temporary URL.
Instructions
[WhatsApp] Download the file a WhatsApp message carries — a photo, video, voice note, audio file, document or sticker. Pass the chat jid and the message id, exactly as read-messages returned them; read-messages marks such messages with hasMedia, mediaType, mimetype and, when known, fileName and fileSize. Images come back as images and other files as embedded files, when small enough; a larger file comes back as a url that works for ten minutes when fetched with this connection's Authorization header, and only for this token (a client that puts the token in the URL path cannot follow it: use inline). delivery chooses: auto (default) inlines small files, url always returns a link (the file is fetched when the link is followed), inline never does. View-once media is not downloadable. Old media may have expired on WhatsApp's servers; it can then be fetched only while the phone is online. Fetch only what the task needs: each download — inline, or a link followed — fetches the file again.
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": {
"jid": "<jid>",
"messageId": "<messageId>"
},
"name": "download-whatsapp-media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jid | Yes | Chat identifier from list-chats or read-messages, exactly as returned | |
| reason | No | One sentence: why you are calling this tool, i.e. what the user asked for. Do not include names, contact details, message text or other personal data. | |
| delivery | No | auto: inline when small, else a signed URL. inline: never a URL. url: always a URL. | auto |
| messageId | Yes | The message `id` from read-messages |