Search Notes
search_notesSearch full text across Obsidian vault notes. Returns matching note paths with line numbers and snippet content for each hit. Use to find notes containing a phrase, keyword, or code fragment.
Instructions
Full-text search across all notes in the vault. Returns matching note paths grouped with the line numbers and snippet content of each hit. Use to locate notes containing a phrase, keyword, or code fragment; pair with get_note to retrieve full bodies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Literal search string matched against note body text (not regex) | |
| caseSensitive | No | If true, match case exactly; otherwise case-insensitive (default: false) | |
| maxResults | No | Maximum number of matching notes to return (1-500, default: 20) | |
| folder | No | Restrict search to this folder relative to the vault root (omit to search entire vault) |