| mode | No | Retrieval mode (default hybrid). Use 'keyword' for exact terms, identifiers, code, or error strings; 'vector' for purely conceptual/semantic queries; 'hybrid' (default) blends both. | hybrid |
| tags | No | Optional list of tags to filter by | |
| type | No | Optional frontmatter type to filter by (e.g. 'Playbook', 'Reference'); case-insensitive | |
| limit | No | Maximum number of results (1-20, default 5) | |
| query | No | Natural language search query. Omit, or leave empty, to list the most recently updated notes that match the filters. | |
| fields | No | Optional filters on any frontmatter key, all must match: user-added keys and the built-in status, author, reviewed_by, source, project, type, tags (exact) and created, updated, reviewed, expires, due, priority (range). op: eq, in (a list, at most 100), gt/gte/lt/lte (numbers or ISO dates), after/before (ISO dates; a bare date is the whole UTC day). A quoted number is text. created/updated fall back to the note's real times when the key is missing. A key no note has is an error. | |
| folder | No | Optional folder path to scope the search to. With no query, the folder and all its subfolders. With a query, the folder and all its subfolders for notes the search index has already upgraded, and only notes directly in this folder for the rest, until the upgrade finishes. | |
| vault_id | No | Optional: limit the search to a single vault, by name (e.g. "Engram") or UUID. Omit to search across ALL your vaults. Call list_vaults to see them. | |
| diversity | No | Result diversity (0 = most relevant, default tuned per plan; 1 = most varied). Uses Maximal Marginal Relevance to reduce redundancy among results. | |
| similar_to | No | Path of a note, e.g. "Projects/Alpha.md": return notes similar to it, using its stored embedding (no query needed). Do not combine with query. The note itself is excluded; filters still apply. | |
| created_after | No | Only notes created at/after this ISO 8601 datetime (frontmatter created/date) | |
| updated_after | No | Only notes updated at/after this ISO 8601 datetime (frontmatter timestamp/modified; without one, the file's modified time rounded up to the hour). Because that fallback rounds up, it can be up to an hour ahead, so updated_before set to now can leave out notes edited in the current hour. | |
| created_before | No | Only notes created at/before this ISO 8601 datetime | |
| updated_before | No | Only notes updated at/before this ISO 8601 datetime (frontmatter timestamp/modified; without one, the file's modified time rounded up to the hour). Because that fallback rounds up, it can be up to an hour ahead, so updated_before set to now can leave out notes edited in the current hour. | |