Change a diary note
update_noteChange a diary note: add to it (body with body_mode 'append'), rewrite it (body_mode 'replace'), fix the date or title, set or add tags, link a race or session. note_id comes from get_notes or add_note. Only the fields you send change. Training sessions are update_session, not this. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
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_id": "<note_id>"
},
"name": "update_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Text to append or the new body, see body_mode. | |
| date | No | New local date, YYYY-MM-DD. | |
| tags | No | Replace the tags with this list. | |
| title | No | New title; empty string clears it. | |
| note_id | Yes | ID of the note, from get_notes or add_note. | |
| race_id | No | Link to a race (race_id from get_calendar); empty string unlinks. | |
| add_tags | No | Add these tags, keeping the existing ones. | |
| body_mode | No | 'append' adds the text as a new paragraph; 'replace' swaps the whole body. Default 'replace'. | |
| session_id | No | Link to a session (session_id from get_calendar); empty string unlinks. |