Search message archive
tg_search_archiveSearch already indexed Telegram messages offline by full text, with chat, date, and field filters; index a chat first so all its messages become searchable without contacting Telegram.
Instructions
Full-text search over messages the service has already read or indexed (titles, versions, passwords, descriptions) WITHOUT contacting Telegram. Use tg_index_chat on a chat to archive all of its messages.
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": "tg_search_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chats | No | ||
| limit | No | ||
| query | Yes | ||
| since | No | ||
| until | No | ||
| fields | No | Keep only these fields in list items (e.g. ["message_id","name","size"]) | |
| format | No | compact = lists as {columns, rows} tables; saves a lot of context for long listings | json |
| account | No | Account id (see tg_list_accounts). Defaults to the default account. |