Search Notes
notes.searchPerform full-text search across all vault notes, using tag: and path: filters to narrow results. Control context length for each match.
Instructions
Full-text search across every note in the vault. The query supports plain text and lightweight prefix filters: tag:foo restricts to notes carrying #foo, and path:Journal/ restricts to notes under a folder. contextLength controls how many characters of surrounding context are returned per match (default 80). Read-only. For pure tag or date filtering, tags.search and notes.list are faster.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Free-text search query. Supports lightweight `tag:foo` and `path:Journal/` filters in the query string. | |
| vaultPath | No | ||
| contextLength | No | Characters of context to return around each match. Defaults to 80. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of result items; per-item shape depends on the tool. | |
| total | Yes | Number of items in `items`. |