get_frontmatter
Read a note's YAML frontmatter as structured JSON, plus the raw YAML and any parse error, to inspect properties, aliases or tags without parsing the file yourself.
Instructions
Get a note's properties (YAML frontmatter) as JSON, plus the raw YAML and any parse error.
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": "<file>"
},
"name": "get_frontmatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. |