edit_note
Replace exact text in a note, refusing ambiguous matches or edits that break frontmatter. Preview changes with dry_run, or set new_text to empty to delete matched text.
Instructions
Replace exact text in a note. old_text must match exactly once (whitespace included), or the edit is refused with the line numbers of the matches; add surrounding text to make it unique. new_text="" deletes. Line endings of the file are preserved and an edit that would make the frontmatter unparseable is refused. dry_run=true shows a diff and writes nothing.
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>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| dry_run | No | ||
| new_text | Yes | ||
| old_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |