List archived chats
list_chatsBrowse archived Telegram chats, most recent first, to retrieve each chat_id reference needed by other archive tools. Filter by name, archived status, or folder and page through results.
Instructions
List archived Telegram chats, most recent first. Use this first: each chat's ref is the chat_id the other tools take. Each row also carries id (the numeric Telegram chat id), type, accounts (the archive account ids holding the chat), and its title or name. Narrow it with search (by name), archived or folder_id (from list_folders). The answer is {chats, total, limit, offset, has_more}; page with offset while has_more is true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum chats to return, 1 to 500 (default 100). | |
| offset | No | Number of chats to skip (default 0). | |
| search | No | Keep chats whose title, first or last name, or username contains this text, case-insensitive (e.g. "climbing"). | |
| archived | No | true keeps only chats archived in Telegram, false only the others. Omit for both. | |
| folder_id | No | Keep only the chats of one Telegram folder; the id comes from list_folders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chats | No | One row per chat: ref (the chat_id other tools take), id (numeric Telegram chat id), type, accounts, and its title or name. | |
| limit | No | ||
| total | No | Chats matching the filters, across all pages. | |
| offset | No | ||
| has_more | No | True when another page follows; call again with offset + limit. |