update_note
Update existing notes by replacing, appending, or prepending content, and merge new frontmatter fields while preserving existing ones.
Instructions
Update an existing note. Supports three modes: 'replace' (overwrite body), 'append' (add to end), or 'prepend' (add to beginning). Can also merge new frontmatter fields into existing frontmatter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How to apply the content: 'replace' overwrites the body, 'append' adds to end, 'prepend' adds to beginning. Default: replace. | replace |
| path | Yes | Path to the note to update, relative to vault root. | |
| content | No | New content for the note body. Behavior depends on 'mode'. | |
| frontmatter | No | Frontmatter fields to merge into the existing frontmatter. Existing fields not specified here are preserved. |