messages_attachments
Retrieve a cursor-paginated page of file-bearing messages and their attachments for a chat and channel, with filters for file types and deleted items.
Instructions
A cursor page of a chat’s file-bearing messages (POST /api/kalagh/messages/attachments · gRPC GetMessageAttachments · socket "messages/attachments")
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": {
"channelId": "<channelId>",
"chatId": "<chatId>"
},
"name": "messages_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| types | No | Defaults to every file-bearing type | |
| chatId | Yes | ||
| cursor | No | ||
| channelId | Yes | ||
| includeDeleted | No |