edit_note
Precision-edit a note's body by replacing, deleting, appending, or prepending text without reading or replacing the full content.
Instructions
Precision-edit a note's body without reading or replacing the full content.
Preferred over update_note for targeted text changes — no get_note round-trip needed. Use update_note instead when changing metadata (title, todo status, due date) or replacing the entire body.
Modes:
Replace: provide old_string and new_string to replace text in the note body.
Delete: provide old_string and set new_string to '' to remove text.
Append: set position='end' (old_string must be None) to append new_string.
Prepend: set position='beginning' (old_string must be None) to prepend new_string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | Note ID to edit | |
| new_string | Yes | Replacement text (use '' to delete) | |
| old_string | No | Text to find and replace (None for positional insert) | |
| replace_all | No | Replace all occurrences (default: False) | |
| position | No | Insert position: 'beginning' or 'end' (only when old_string is None) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |