update_metadata
Update frontmatter metadata in a note while preserving existing fields. Specify the note path and JSON metadata to add or update.
Instructions
Update frontmatter metadata in a note, preserving existing fields.
Args: note_path: Path to the note relative to vault root metadata_json: JSON string with metadata fields to update/add
Returns: Success message or error description
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": {
"note_path": "<note_path>",
"metadata_json": "<metadata_json>"
},
"name": "update_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_path | Yes | ||
| metadata_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |