Index chat
tg_index_chatIndex a Telegram chat's file metadata in the background, incrementally by default, so you can search files and compare chats offline afterward.
Instructions
Scan a chat in the background and store all its file metadata in the local index (incremental: only new messages since the last scan unless full=true). Afterwards tg_search_files and tg_compare_chats work offline.
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": {
"chat": "<chat>"
},
"name": "tg_index_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat: @username, username, t.me link, t.me/c/<id> link, or numeric id such as -100123… | |
| full | No | Rescan from the beginning | |
| account | No | Account id (see tg_list_accounts). Defaults to the default account. |