List chats
list_chatsRetrieve recent Telegram chats newest first with IDs, names, kinds, unread counts, and last-message previews; filter by kind or unread status and limit or trim fields to reduce output.
Instructions
Recent conversations, newest first. Returns a compact row per chat: id, name, kind, unread count and a short preview of the last message. Use fields to cut it down further.
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 |
|---|---|---|---|
| kind | No | Only this kind of chat. | |
| limit | No | How many chats. Default 20, max 200. | |
| fields | No | Comma separated fields to keep, e.g. 'id,text'. Dotted paths descend. Cuts response size. | |
| unread_only | No | Only chats with unread messages. |