update_frontmatter_field_fs_tool
Update or add frontmatter fields in Obsidian notes. Manages metadata like status, timestamps, or custom fields. Supports strings, numbers, booleans, and lists.
Instructions
Update or add a field in note's YAML frontmatter.
If the note has no frontmatter, it will be created. If the field already exists, its value will be updated. Otherwise, the field will be added. Supports strings, numbers, booleans, and lists.
When to use:
Updating note status or metadata
Adding creation/modification timestamps
Managing custom frontmatter fields
Programmatic metadata management
Performance:
Any note size: < 200ms
Returns: Success status and descriptive message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to note (relative to vault or absolute) | |
| field | Yes | Field name to update/add in frontmatter | |
| value | Yes | Value to set (string, number, boolean, or list) | |
| vault_path | No | Path to vault root (optional, uses OBSIDIAN_VAULT_PATH env if not provided) | |
| ctx | No |