edit_note
Performs exact find-and-replace inside a single note, like a code editor. Use it to fix or update text precisely when you need an exact, unique match or a bulk replace.
Instructions
Exact find-and-replace inside one note (like a code editor). old_text must match exactly and be unique unless replace_all is true.
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>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| new_text | Yes | ||
| old_text | Yes | ||
| replace_all | No |