write_note_tool
Create or overwrite notes in an Obsidian vault, previewing changes with dry-run and unified diff before writing and preserving existing frontmatter.
Instructions
Write (create or overwrite) a note. Respects READ_ONLY and WRITE_PATHS.
If content has no frontmatter of its own and a note already exists at
path, its existing frontmatter is preserved rather than dropped —
check the returned frontmatter_preserved flag. The result also carries
a diff (unified diff against the current file).
dry_run=True previews {preview, diff, frontmatter_preserved} without
writing anything — check it, then call again with dry_run=False.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| vault | No | ||
| content | Yes | ||
| dry_run | No | ||
| create_only | No | ||
| expected_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||