Search Notes
notes.searchFull-text search across all Obsidian vault notes. Supports plain text and prefix filters for tags (tag:foo) and folders (path:Journal/). Customize context length per match. Read-only.
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. | |
| contextLength | No | Characters of context to return around each match. Defaults to 80. | |
| vaultPath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Number of items in `items`. | |
| items | Yes | List of result items; per-item shape depends on the tool. |