search_vault
Search an Obsidian vault for text, returning matching files with optional context lines, folder limits, and case-sensitive matching.
Instructions
Search the vault for text and return matching files (JSON).
Set context=True to also get the matching lines around each hit, path to
limit to a folder, limit to cap results, and case=True for case-sensitive
matching.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_vault"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| path | No | ||
| limit | No | ||
| context | No | ||
| case | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |