Bulk Replace
bulk_replaceReplace text across notes in a selected folder, with optional regex matching. Previews changes by default and creates a rollback snapshot before applying.
Instructions
Replace text across notes selected by folder, optionally using regex. Defaults to dry-run, reports every changed file, enforces maxFiles, and creates a rollback snapshot before applying.
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": {
"find": "<find>",
"replace": "<replace>"
},
"name": "bulk_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Literal text or JavaScript regex pattern. | |
| regex | No | Treat find as a regular expression (default false). | |
| dryRun | No | Preview only (default true). Set false to apply. | |
| folder | No | Optional vault-relative folder scope. | |
| replace | Yes | Replacement text; regex capture references such as $1 are supported. | |
| maxFiles | No | Abort above this changed-file count (default 100). | |
| caseSensitive | No | Regex case sensitivity (default true). |