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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "obsidian_update_frontmatter"
}
}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 |