Edit Note
notes.editEdit existing notes by replacing, appending, prepending, or inserting content after a specific heading or block reference in an Obsidian vault.
Instructions
Mutate the body of an existing note. The mode field selects how content is applied: replace overwrites the whole note; append adds to the end; prepend adds after the frontmatter (or at the top if none); after-heading inserts after the first heading whose text matches anchor (no leading #); after-block inserts after the block reference ^anchor. Fails if the note does not exist — use notes.create first. replace mode is idempotent-destructive; the others are additive.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Examples:
Example 1 — Append a new journal entry to the end of today's note:
{
"mode": "append",
"path": "Journal/2026-04-24.md",
"content": "\n## Afternoon\n\nFinished the tool consolidation."
}Example 2 — Insert content after a specific heading:
{
"mode": "after-heading",
"path": "Projects/Alpha.md",
"anchor": "Open questions",
"content": "- Do we need to bump the Zod major?\n"
}Example 3 — Insert after a block reference:
{
"mode": "after-block",
"path": "Notes/idea.md",
"anchor": "idea-1",
"content": "Follow-up thought …"
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | The path or identifier the tool acted on. | |
| changed | Yes | True if the tool altered vault state on this call; false if it was a no-op. | |
| summary | Yes | Short human-readable summary of what happened. |