search_and_replace
Search for text across files in your Obsidian vault and replace matches with new content, using literal or regex patterns.
Instructions
Find and replace text across the vault (or a single file). Supports literal or regex patterns.
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": {
"pattern": "<pattern>",
"replacement": "<replacement>"
},
"name": "search_and_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| isRegex | No | ||
| pattern | Yes | ||
| replacement | Yes |