Get a message attachment
get_messaging_attachmentDownload one attachment of a message (a photo, video, voice note, GIF, sticker or file; ids from list_messaging_messages) as base64 with its MIME type. Files over 5 MB are refused as base64: pass link: true instead to get a private link that works for 10 minutes (up to 100 MB), to open or hand to another tool. Read-only.
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": {
"account_id": "<account_id>",
"chat_id": "<chat_id>",
"message_id": "<message_id>",
"attachment_id": "<attachment_id>"
},
"name": "get_messaging_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | ||
| chat_id | Yes | ||
| account_id | Yes | ||
| message_id | Yes | ||
| attachment_id | Yes |