edit-note
Perform targeted text edits, replace sections by heading, or batch apply multiple changes in notes with preview support.
Instructions
Unified tool for targeted text edits, section replacements, and batch edits
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: 'edit', 'replace-section', 'batch-edit' | |
| path | No | Path to the note | |
| old_text | No | Text to find and replace | |
| new_text | No | Replacement text | |
| replace_all | No | Whether to replace all occurrences (default false) | |
| context_lines | No | Number of context lines to return (default 0) | |
| expected_mtime | No | Expected file modification time (RFC3339Nano) for optimistic concurrency | |
| heading | No | Heading of the section to replace | |
| content | No | New content for the section | |
| edits | No | List of edits to apply | |
| dry_run | No | Preview edits without modifying files |