Edit
editEdit markdown notes using operations like append, replace, or frontmatter merge. Supports batch edits up to 50, dry-run previews, and targeting by heading or block ID.
Instructions
Edit notes safely. Vault scope: general markdown notes vault. Supports AST edits by heading/block ID, freeform line/string replacement, frontmatter_set metadata merges, batch operations (max 50), and dryRun=true unified diff previews. Read vault://overview for editing strategy and conventions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Note path (required for single edit). | |
| operation | No | Edit operation (required for single edit). | |
| content | No | Content to apply (required for single edit). | |
| heading | No | ||
| headingDepth | No | ||
| blockId | No | ||
| startLine | No | ||
| endLine | No | ||
| searchText | No | ||
| replaceAll | No | ||
| dryRun | No | If true, returns a preview of changes as a unified diff without saving to disk. | |
| operations | No | For batch mode: array of edit operations (max 50). Executed sequentially, stops on first error. |