list_media
List chat messages filtered by attachment type using Telegram's server-side index. Returns metadata and captions only, with read-only access.
Instructions
Messages in a chat filtered by attachment kind, using Telegram's own server-side index. Returns metadata and captions only — there is no download 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": {
"chat": "<chat>",
"kind": "<kind>"
},
"name": "list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | @username, t.me link, or numeric id from list_chats. | |
| kind | Yes | Which attachment kind to list. | |
| limit | No | Max messages, capped at 200. Default 50. |