patch_frontmatter
Update, set, or delete frontmatter keys without reordering keys or changing quote style; pass null to delete. Use prevHash to prevent overwriting concurrent changes.
Instructions
Set, update, or delete frontmatter keys without reordering existing keys or changing quote style. Pass null as a value to delete a key.
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": {
"path": "<path>",
"patch": "<patch>"
},
"name": "patch_frontmatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the note. | |
| patch | Yes | Key-value pairs to set. Null value removes the key. | |
| prevHash | No | Optional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict if the note changed since. |