extract_dataview_fields_tool
Extract Dataview inline fields from any note file using offline, filesystem-native parsing. Supports all three syntax variants, detects value types (string, number, date, wikilink, list), and skips code blocks.
Instructions
Extract all Dataview inline fields from a note (filesystem-native, offline).
Parses all three Dataview inline field syntax variants:
Full-line:
field:: valueBracket:
[field:: value](inline, visible)Paren:
(field:: value)(inline, hidden key)
Automatically detects value types:
String, number, boolean, date (ISO8601)
Wikilink: [[note]]
List: "item1", "item2" or item1, item2
Skips code blocks to avoid false matches.
When to use:
Extracting metadata from notes
Auditing field usage
Migrating to frontmatter
Understanding note properties
Performance:
Single note: < 100ms
Processes up to 10,000 fields per second
Returns: All fields with keys, values, types, syntax variants, and line numbers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to note file (relative to vault) | |
| vault_path | No | Path to vault (optional, uses OBSIDIAN_VAULT_PATH env if not provided) | |
| ctx | No |