obsidian_replace_in_note
Replace the first occurrence of a specific text string in a note to make surgical inline edits, such as adding a wikilink to existing text.
Instructions
Replace the first occurrence of a specific text string in a note. Use for surgical inline edits, e.g. adding a wikilink to existing text.
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_path": "<file_path>",
"old_text": "<old_text>"
},
"name": "obsidian_replace_in_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_text | No | Replacement text (default: empty string) | |
| old_text | Yes | Exact text to find and replace | |
| file_path | Yes | Relative path to the note | |
| vault_path | No | Optional vault path override |