tg_find_chats
Find Telegram chats by title, username, or ID across your dialogs and the public directory, returning the exact ref needed for other tools.
Instructions
Find chats and return the exact ref to use in other tools.
Searches your dialogs by title/username/id and, for a non-empty query, the public Telegram directory. Public results include chats you have not joined; nothing is joined automatically.
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": "tg_find_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max chats per source. | |
| query | No | Substring of the chat title, @username or id (case-insensitive). | |
| scope | No | dialogs = your chats, public = Telegram directory, all = both. | all |
| refresh | No | Bypass the 5-minute dialog cache. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||