vault_search
Search an Obsidian vault for relevant files using full-text, ranked, or recent change modes. Apply filters by type, status, tags, or project to refine results.
Instructions
Search the vault: full-text, ranked, or recent changes.
Default mode: flat full-text search across all vault files. Ranked mode (ranked=True): results scored by relevance. Recent mode (since_days>0): files changed in the last N days. rank_by mode (rank_by != 'bm25'): lessons-only, ranked by usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Text to search for (case-insensitive). | |
| max_lines | No | Maximum output lines. Default 500. | |
| type_filter | No | Only files whose frontmatter type matches. | |
| status_filter | No | Only files whose frontmatter status matches. | |
| tag_filter | No | Only files that have this frontmatter tag. | |
| use_regex | No | Treat query as regex. Default False. | |
| ranked | No | Score results by relevance. Default False. | |
| max_results | No | Max files when ranked. Default 10. | |
| since_days | No | Show recent changes (0 = disabled). Default 0. | |
| project | No | Filter to this project (recent mode only). | |
| scope | No | Restrict search to a scope (e.g. 'work', 'projects'). Empty = all. | |
| rank_by | No | Lesson ranking ('bm25' default keeps current behaviour; 'reinforcements', 'confidence', 'hybrid' filter to 90-lessons.md only and rank by usage signal). | bm25 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |