Search Vault
searchFind notes by keyword or meaning and get ranked results with best-matching snippets. Filter by folder or frontmatter to narrow large vaults quickly.
Instructions
Search notes by keyword and meaning; returns notes ranked by score, each with its best-matching sections as snippets.
Use list_documents for a complete listing and read for a path you already know.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Omit for the best mode this vault serves. `"keyword"` suits exact terms, operators and filenames; `"semantic"` matches meaning only; `"hybrid"` combines both. `"semantic"` and `"hybrid"` need semantic_search_available from stats. | |
| limit | No | Maximum notes to return (default 10). | |
| query | Yes | Words to match or a natural-language question. | |
| folder | No | Only notes under this folder, a value from list_folders; `""` for top-level notes only. | |
| filters | No | Frontmatter values to match, all of them, such as `{"tags": "pacing"}`; keys come from indexed_frontmatter_fields in stats, and a list field matches when it holds the value. On an OKF bundle, status (draft, stable or deprecated; stable includes notes with none), stale (`"true"` or `"false"`) and trust_tier (unverified, machine-confirmed or human-reviewed) filter too, and `{"type": null}` matches notes with no type, the untyped_count of stats, never index.md or log.md. | |
| snippet_words | No | Snippet width in words; omit for the server default, 0 for whole sections. read with section set to a result's heading returns that whole section. | |
| chunks_per_file | No | Maximum sections per note, at least 1; omit for the server default. | |
| wait_for_pending_writes | No | Wait for recent index writes. On timeout, answer from the current index with _meta.index_stale=true. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |