Search every chat
search_all_chatsSearch message text across all accessible Telegram chats in an archive, returning newest hits with chat identifiers for context lookup.
Instructions
Search message text across every chat this archive login may see, newest first. Matching is by word prefix on the viewer's full-text index. Each hit names its chat, and chat.ref is the chat_id for get_message_context or get_messages. Use search_messages instead to search one known chat. Needs a Telegram Archive viewer with cross-chat search; an older viewer answers 404.
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": {
"query": "<query>"
},
"name": "search_all_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum hits to return, 1 to 100 (default 20). | |
| query | Yes | Words to find (e.g. "climbing gym address"). | |
| offset | No | Hits to skip, 0 to 5000 (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| offset | No | ||
| indexed | No | False while the viewer is still building its search index, so hits may be missing. | |
| results | No | Hits, newest first: id, date (naive UTC), text, sender_name, topic_title, matched_in, and chat {ref, title, type, ...}. chat.ref is the chat_id other tools take. | |
| has_more | No | True when more hits follow; call again with offset + limit. |