search
Find notes and matching lines in an Obsidian vault using native query syntax for words, phrases, regex, tags, properties, tasks, file, path, and content filters.
Instructions
Search the vault with Obsidian's search syntax: words (AND), "exact phrase", OR, -exclude, (groups), /regex/, file:, path:, content:, tag:#x, line:(a b), block:(…), section:(…), task:, task-todo:, task-done:, match-case:, [property], [property:value]. Returns notes with matching lines.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 50) | |
| query | Yes | ||
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| folder | No | Limit to this folder (vault-relative) | |
| case_sensitive | No | ||
| include_ignored | No | Include files in "Excluded files" (Settings → Files & links) | |
| matches_per_file | No | Default 5 |