Rebuild Local FTS Index
fts_rebuildRebuild the full-text search index from cached messages to update stale search results after major mailbox changes. Returns count of indexed messages.
Instructions
Clear the local FTS5 index and rebuild it from the messages currently cached by the analytics layer (INBOX + Sent). Intended for use after major mailbox changes or when fts_search returns stale results. Returns the number of messages indexed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dbPath | No | ||
| indexed | No | ||
| messageCount | No |