obsidian_update_frontmatter
Updates YAML frontmatter in markdown notes safely via single key/value or batch changes, keeping Obsidian metadata consistent.
Instructions
Update YAML frontmatter of a note safely. Supports single key/value or batch updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Frontmatter key to update (single-key mode) | |
| value | No | New value for the key (JSON stringified if array/object; single-key mode) | |
| updates | No | JSON object of key/value pairs to set at once (batch mode, alternative to key+value) | |
| file_path | Yes | Relative path to the note | |
| vault_path | No | Optional vault path override |