Search with surrounding context
obsidian_search_contextSearch Obsidian notes with full-text queries and retrieve results with surrounding context lines for precise reference.
Instructions
Full-text search that returns surrounding lines of context for each hit.
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": "obsidian_search_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | No | Vault name to target. Optional — defaults to the most recently focused vault. | |
| query | Yes | ||
| limit | No |