update_note
Update existing notes with overwrite, append, prepend, or replace modes. Prevent frontmatter conflicts when prepending content.
Instructions
Update an existing note. Modes: overwrite (replace all), append (add to end), prepend (add to start), replace (find and replace specific text). Prepend mode will error if content starts with "---" to prevent frontmatter conflicts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How to update: overwrite (replace all), append (add to end), prepend (add to start), replace (find and replace) | overwrite |
| path | Yes | Path to the note to update | |
| search | No | Text to search for (required for replace mode) | |
| content | Yes | New content to write (or replacement text in replace mode) | |
| useRegex | No | Treat search as a regular expression (default: false) | |
| replaceAll | No | Replace all occurrences instead of just the first (default: false) | |
| ignoreFrontmatterConflict | No | Force prepend even if content contains "---" that may conflict with existing frontmatter (default: false) |