tg_index_chat
Build or incrementally update a local SQLite FTS5 index for one Telegram chat so you can search large message histories repeatedly without refetching everything.
Instructions
Build or update the local SQLite FTS5 index for one chat.
Incremental by default: only messages newer than the indexed maximum are
fetched. Use it for large histories you query repeatedly, then search it
instantly with tg_search_index. On FloodWait the response carries
stopped.retry_after; re-run later to continue.
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 reference: @username, t.me link, or numeric chat id. | |
| limit | No | Max history messages to scan in this call. | |
| reset | No | Drop the existing local index for this chat first. | |
| since_id | No | Index only messages newer than this id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||