note
Manage Obsidian notes: read, create, update, delete, rename, and edit frontmatter with conflict detection and undo support.
Instructions
Read, create, update, delete, rename a note, or edit its frontmatter. action=read returns content+frontmatter+contentHash+revisionHash+outgoingLinks. Path accepts vault-relative paths, titles, and frontmatter aliases (except create, which writes the literal path). update: prefer patch (old_string/new_string) or replace_section (heading); replace is size-guarded; optional frontmatter merge on the same update (one journaled op for body + metadata). Pass expectedRevision from read to detect concurrent edits (expectedHash remains a deprecated body-hash alias). Mutations return operationId/undoAvailable when journaling is enabled; use vault undo to reverse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Used by frontmatter action delete operation only | |
| mode | No | Used by update action only; patch inferred when old_string and new_string are set | |
| path | Yes | Note path, title, or frontmatter alias (rename source when action=rename; create uses literal path) | |
| force | No | Used by update action replace mode only | |
| action | Yes | Operation: read, create, update, delete, rename, or frontmatter | |
| confirm | No | Used by delete action only; must be true | |
| content | No | Used by create and update actions | |
| heading | No | Used by update action replace_section mode only | |
| newPath | No | Used by rename action only | |
| overwrite | No | Used by create action only | |
| new_string | No | Used by update action patch mode only | |
| old_string | No | Used by update action patch mode only | |
| replaceAll | No | Used by frontmatter action set operation only | |
| fmOperation | No | Used by frontmatter action only | |
| frontmatter | No | Used by create, frontmatter set/merge, and update (merge into existing frontmatter in the same journaled op) | |
| updateIndex | No | Used by rename action only | |
| expectedHash | No | Deprecated alias of contentHash from read; used by update, frontmatter, delete, rename, and create with overwrite:true | |
| updateBacklinks | No | Used by rename action only | |
| expectedRevision | No | revisionHash from read; used by update, frontmatter, delete, rename, and create with overwrite:true |