Synchronize Chat History to Local Archive
sync_chat_cacheSync recent chat messages into a local SQLite/FTS5 archive to keep your offline cache fresh. Run incrementally since the last checkpoint or do a full refresh.
Instructions
Synchronize a batch of recent messages from a chat into the local SQLite/FTS5 archive. Use periodically to keep the offline cache fresh. Supports incremental mode (since last checkpoint) or full refresh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Synchronization mode: 'incremental' (new messages since checkpoint) or 'full' (all messages in batch). | incremental |
| limit | No | Maximum number of items or records to retrieve (integer between 1 and 100). | |
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||