batch_replace
Find and replace text across many Obsidian notes filtered by folder, glob, or tag. Preview changes with dry_run enabled, then apply them with dry_run:false.
Instructions
Find and replace across many notes (filter by folder, glob or tag). dry_run (default true) only reports what would change — run again with dry_run:false to apply.
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": {
"search": "<search>",
"replace": "<replace>"
},
"name": "batch_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| glob | No | ||
| regex | No | ||
| 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) | |
| search | Yes | ||
| dry_run | No | ||
| replace | Yes | ||
| max_files | No | Default 500 | |
| case_insensitive | No |