search
Find and retrieve keyword matches across all files in an Obsidian vault, with optional surrounding context for clarity.
Instructions
Performs a keyword search across all files in the vault.
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 |
|---|---|---|---|
| query | Yes | The search query. | |
| vaultId | No | Optional vault ID (defaults to configured default vault). | |
| contextLength | No | Number of characters of context around each match (default: 100). |