Rebuild Local FTS Index
fts_rebuildRebuild the full-text search index using cached messages from INBOX and Sent folders. Use after major mailbox changes or when search results are outdated.
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 |