get_frontmatter_field
Retrieve a single frontmatter field's value from an Obsidian note, preserving its original data type (string, number, boolean, array, object, or null).
Instructions
Returns the named frontmatter field's value with its original type preserved — string, number, boolean, array, object, or null. If the field or the note does not exist, the upstream's 4xx error is propagated unchanged. To read all frontmatter fields at once, use get_file_contents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | The name of the single frontmatter field to read. Must be non-empty after trimming whitespace. | |
| vaultId | No | Optional vault ID (defaults to configured default vault). | |
| filepath | Yes | Path to the file (relative to vault root). |