Full-Text Search (Local Index)
fts_searchPerform BM25-ranked keyword search across indexed email corpus with FTS5 syntax including phrases, boolean operators, prefix queries, and column filters. Requires pre-built index.
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). Faster and smarter than search_emails, but requires the local index to be built — call fts_rebuild if fts_status shows it empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | FTS5 query string | |
| folder | No | Restrict results to a single folder | |
| sinceEpoch | No | Filter to messages whose date is at or after this Unix-epoch second | |
| limit | No | Max hits to return (1–200, default 20) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes |