replace_note_text
Replaces an exact text string in a Markdown note only when it appears once, returning the match count and whether the replacement ran. Use it to make safe, unambiguous edits or deletions.
Instructions
Replace a literal string only when it occurs exactly once in the Markdown body. Return the match count and whether the replacement ran.
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": {
"note": "<note>",
"find": "<find>",
"replace": "<replace>"
},
"name": "replace_note_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Exact text to find, including spacing and line endings. | |
| note | Yes | Relative path, note title, or alias. | |
| vault | No | Optional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected. | |
| replace | Yes | Replacement text. Use an empty string to delete the match. |