search_notes_tool
Search for notes by keywords, tags, or folder paths using Obsidian syntax to find relevant results with context snippets and relevance scores. Optimize note retrieval for specific criteria efficiently.
Instructions
Search for notes containing specific text or matching search criteria.
When to use:
- Finding notes by content keywords
- Locating notes with specific tags
- Searching within specific folders
When NOT to use:
- Searching by date (use search_by_date instead)
- Listing all notes (use list_notes for better performance)
- Finding a specific known note (use read_note directly)
Returns:
Search results with matched notes, relevance scores, and context
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_length | No | Number of characters to show around matches | |
ctx | No | ||
query | Yes | Search query supporting Obsidian syntax |
Input Schema (JSON Schema)
{
"properties": {
"context_length": {
"default": 100,
"description": "Number of characters to show around matches",
"maximum": 500,
"minimum": 10,
"title": "Context Length",
"type": "integer"
},
"ctx": {
"default": null,
"title": "Ctx"
},
"query": {
"description": "Search query supporting Obsidian syntax",
"examples": [
"machine learning",
"tag:#project",
"path:Daily/",
"tag:#urgent TODO"
],
"maxLength": 500,
"minLength": 1,
"title": "Query",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}