Full-Text Search (Local Index)
fts_searchPerform fast BM25-ranked keyword search on your locally indexed mail with FTS5 syntax including phrases, boolean operators, prefixes, and column filters. Perfect for quick offline queries after indexing.
Instructions
BM25-ranked keyword search over the locally indexed mail corpus. Supports FTS5 syntax: phrases ("exact phrase"), boolean (foo AND bar, foo OR bar, NOT baz), prefix (proto*), and column filters (subject:invoice from:alice). Use search_emails for live, authoritative IMAP results; use this for faster ranked local search after fts_rebuild has populated the index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max hits to return (1–200, default 20) | |
| query | Yes | FTS5 query string | |
| folder | No | Restrict results to a single folder | |
| 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). | |
| sinceEpoch | No | Filter to messages whose date is at or after this Unix-epoch second |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes |