regex_search_and_replace
Find and replace text across an Obsidian vault using regex patterns, optionally limiting changes to specific files. Apply bulk edits consistently without manually updating notes one by one.
Instructions
Find and replace with regex across 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": {
"pattern": "<pattern>",
"replacement": "<replacement>"
},
"name": "regex_search_and_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regex pattern to find | |
| filenames | No | Optional specific files to process | |
| replacement | Yes | Replacement text |