search
Find notes and memories in the vault by keywords, tags, type, project, zone, or status to locate relevant context, with snippets and line references.
Instructions
Full-text search over the vault (notes and memories), best matches first.
With no query, lists the notes matching the filters. If no note has all the words,
retries with any of them ("match": "or", "note"); with 1-2 hits and 2+ words,
"partial" lists up to 5 more notes with some of the words.
With match="any" or after that retry, each row carries "matched": the words it has.
Returns JSON {"results": [{"path", "title", "line", "snippet", "score", and when set
"zone", "type", "status", "project", "created", "priority", "heading",
"superseded_by"}], "total"}. line is the 1-based line of the first match; open it
with read(path, lines=...). With no results, "hints" says which filter matches nothing.
facets=true adds "facets": counts by zone, project, type, status and tags.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path prefix, e.g. docs/claude-code. | |
| tags | No | Tags the note must all have; `dominio:x` is read as `dominio/x`. Tags span projects: use them without project to follow a topic across projects. | |
| type | No | Frontmatter type. Memories: decision, lesson, error, constraint, preference, session, reminder, insight. Documentation uses others, e.g. reference. | |
| zone | No | Only notes of this zone, as in episteme.toml, e.g. "memory" (memories) or "docs/claude-code". | |
| limit | No | 1-100. | |
| match | No | "all" (default): every word must appear. "any": notes with any of the words, best first, each row listing the ones it has in "matched". Use "any" to look up several names or variants of a word in one call. | all |
| query | No | Words that must all appear (AND; any of them with match="any"); "quoted text" is a phrase; `a-b` is the words a and b; `word*` matches any word starting with it. Case and accents are ignored. Optional when tags, type, project, zone or facets is given. | |
| facets | No | Also return counts by zone, project, type, status and tag; alone, it lists what the vault has. | |
| status | No | active, speculative, superseded or archived. Default: everything except superseded and archived memories; "any" includes them (rows then carry status and superseded_by). | |
| project | No | Frontmatter project; "_shared" memories are included. Optional. |