search_vault
Search for text across all notes in an Obsidian vault. Supports regex patterns, context lines, and folder filtering for precise results.
Instructions
Search for text across all notes in the vault. Supports regex patterns and context lines around matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text to search for (or regex pattern if useRegex is true) | |
| folder | No | Limit search to a specific folder | |
| useRegex | No | Treat query as a regular expression (default: false) | |
| maxResults | No | Maximum number of files to return (default: 50) | |
| contextLines | No | Number of lines to include before and after each match (default: 0) | |
| caseSensitive | No | Whether the search should be case-sensitive (default: false) |