Skip to main content
Glama
adrienthebo
by adrienthebo

search_notes_tool

Search Obsidian notes by filename or content to locate specific information, tags, or metadata within your vault.

Instructions

Search for notes by filename or content, with smart ranking.

DEFAULT BEHAVIOR (NEW): Searches BOTH note filenames AND content automatically. Filename matches are ranked higher than content matches for better discovery.

When to use:

  • Finding a note when you know part of its name (just type the name)

  • Finding notes containing specific content

  • Locating notes with specific tags

  • Searching within specific folders

  • Finding notes by frontmatter properties

Search modes:

  • Default: searches BOTH filenames and content (filename matches ranked higher) Example: "tag refactor" finds "Obsidian Tag Refactor.md" AND notes mentioning "tag refactor"

  • "path:text" - searches ONLY in filenames/paths

  • "tag:tagname" - searches by tag (supports hierarchical tags)

  • "property:name:value" - searches by frontmatter properties

Examples:

  • Find a note by name: "Project Tracker" (will find "Project Tracker.md" first)

  • Search content only: Use explicit path: prefix to exclude: "path:Project"

  • Find by tag: "tag:important" or "tag:project/web"

  • Find by property: "property:status:active"

Tag search supports hierarchical tags:

  • "tag:project" finds all project-related tags including project/web, project/mobile

  • "tag:web" finds any tag ending with "web" like project/web, design/web

When NOT to use:

  • Searching by date (use search_by_date instead)

  • Listing all notes (use list_notes for better performance)

  • Reading a specific note when you know the exact path (use read_note directly)

Returns: Search results with matched notes, relevance scores, and context. Filename matches have higher scores than content matches. Response includes match_type field: "filename" or "content".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query that matches BOTH filenames and content by default. Just type a note name to find it! Use prefixes for specific search types: 'tag:' for tags, 'path:' for ONLY filenames, 'property:' for metadata.
context_lengthNoHow much text to show around each match for context. Higher values show more surrounding content.
max_resultsNoMaximum number of results to return. Use smaller values for faster responses and larger values for comprehensive searches.
ctxNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adrienthebo/obsidian-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server