add_dataview_field_tool
Add a Dataview inline field to a note, auto-detecting value types and supporting multiple syntax variants and insertion positions.
Instructions
Add a Dataview inline field to a note (filesystem-native, offline).
Creates a new Dataview field using the specified syntax variant. Automatically detects and preserves value types (number, boolean, date, etc.).
Syntax variants:
full-line:
field:: value(standalone line, most common)bracket:
[field:: value](inline, visible in reading mode)paren:
(field:: value)(inline, hidden key in reading mode)
Insertion positions:
after_frontmatter: After YAML frontmatter (or start if none)
start: Very beginning of file
end: Very end of file
When to use:
Adding metadata to existing notes
Batch tagging/categorization
Automated property assignment
Template-based field injection
Returns: Success status, formatted field string, and canonical key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to note file (relative to vault) | |
| key | Yes | Field key | |
| value | Yes | Field value (will be auto-typed: number, boolean, date, etc.) | |
| syntax_type | No | Syntax variant: full-line (field:: value), bracket ([field:: value]), paren ((field:: value)) | full-line |
| insert_at | No | Where to insert the field | after_frontmatter |
| vault_path | No | Path to vault (optional, uses OBSIDIAN_VAULT_PATH env if not provided) | |
| ctx | No |