patch_note
Replace exact text in an Obsidian note by specifying its vault-relative path, search string, and replacement; optionally replace all occurrences.
Instructions
Replace the first (or all) occurrences of a search string within a note.
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": {
"path": "<path>",
"search": "<search>",
"replace": "<replace>"
},
"name": "patch_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the note. | |
| search | Yes | Exact string to find. | |
| replace | Yes | Replacement string. | |
| replace_all | No | Replace all occurrences. Defaults to false. |