replace_in_note
Search and replace text or regular expressions in an Obsidian note, including $1 capture groups, to update content in place without manual edits.
Instructions
Search and replace in a note with plain text or a regular expression ($1 groups allowed).
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": {
"file": "<file>",
"search": "<search>",
"replace": "<replace>"
},
"name": "replace_in_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max replacements | |
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| regex | No | ||
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| search | Yes | ||
| replace | Yes | ||
| case_insensitive | No |