search_vault
Search and filter Obsidian notes by text, regex, title, tag, date, and folder. Retrieve full content, context, or paginated results for precise knowledge discovery.
Instructions
Search Obsidian vault for notes matching criteria.
Args:
query: Text or regex pattern to search for
query_type: "text" or "regex"
search_in_path: Limit search to specific folder
title_contains: Filter by title (string or array)
title_match_mode: "any" or "all" for multiple title terms
tag: Filter by tag (string, array, or JSON string like title_contains)
tag_match_mode: "any" or "all" for multiple tag terms
context_length: Characters of context around matches
include_content: Return full note content
modified_since/until: Filter by modification date (YYYY-MM-DD)
created_since/until: Filter by creation date (YYYY-MM-DD)
page_size/page: Pagination controls
max_matches_per_file: Limit matches per file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_length | No | ||
created_since | No | ||
created_until | No | ||
include_content | No | ||
max_matches_per_file | No | ||
modified_since | No | ||
modified_until | No | ||
page | No | ||
page_size | No | ||
query | No | ||
query_type | No | text | |
search_in_path | No | ||
tag | No | ||
tag_match_mode | No | any | |
title_contains | No | ||
title_match_mode | No | any |
Input Schema (JSON Schema)
{
"properties": {
"context_length": {
"default": 100,
"title": "Context Length",
"type": "integer"
},
"created_since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Created Since"
},
"created_until": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Created Until"
},
"include_content": {
"default": false,
"title": "Include Content",
"type": "boolean"
},
"max_matches_per_file": {
"default": 5,
"title": "Max Matches Per File",
"type": "integer"
},
"modified_since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Modified Since"
},
"modified_until": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Modified Until"
},
"page": {
"default": 1,
"title": "Page",
"type": "integer"
},
"page_size": {
"default": 50,
"title": "Page Size",
"type": "integer"
},
"query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Query"
},
"query_type": {
"default": "text",
"title": "Query Type",
"type": "string"
},
"search_in_path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Search In Path"
},
"tag": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Tag"
},
"tag_match_mode": {
"default": "any",
"title": "Tag Match Mode",
"type": "string"
},
"title_contains": {
"anyOf": [
{},
{
"type": "null"
}
],
"default": null,
"title": "Title Contains"
},
"title_match_mode": {
"default": "any",
"title": "Title Match Mode",
"type": "string"
}
},
"title": "search_vaultArguments",
"type": "object"
}