Search notes
search_notesSearch an Obsidian vault using text or regex, with optional filters for tag, folder, or path glob. Retrieves matching notes and snippets.
Instructions
Search the vault by text or regular expression, optionally filtered by tag and path glob. Returns matching notes with snippets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only notes carrying this tag (without '#') | |
| limit | No | Max results (default: 20) | |
| query | No | Text or regular expression to search for | |
| regex | No | Treat query as a regular expression (default: false) | |
| folder | No | Restrict search to this folder | |
| offset | No | Skip this many matches (pagination) | |
| path_glob | No | Only paths matching this glob, e.g. 'Projects/**/*.md' | |
| line_numbers | No | Include line numbers of matches (default: false) |