Change workout
update_workoutChange a saved workout; only what you pass changes. Mark a planned workout as done with state logged rather than creating it again: without exercises every planned set is saved as done as planned, and with exercises you say what was really done. exercises replaces the whole list, so pass every exercise the workout should keep, each with the key it was returned with, including those that did not change; an exercise without a key is new, and one left out is removed. A planned set the person skipped stays in a logged workout with done false, and reads as skipped, never failed. note null clears the note. Confirm the change only after success.
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": {
"id": "<id>"
},
"name": "update_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id of the workout to change, as list_workouts or create_workout returned it | |
| note | No | A new note; null clears it | |
| place | No | Where it is done: a place id from list_places; null clears it | |
| state | No | logged for a workout done; planned only for a plan the person asked to save | |
| title | No | What the session is called, such as Push day or Legs | |
| endsAt | No | When it ended, with its UTC offset, so its duration reads; leave out when not known, and for a plan | |
| startsAt | No | When it started, or for a plan when it will, with its UTC offset | |
| timezone | No | ||
| exercises | No | Replaces every exercise in the workout: pass all it should keep, each with its key, changed or not | |
| supersets | No | Names and rests for supersets; one an exercise points at without listing it here is made with neither |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| day | Yes | ||
| note | Yes | ||
| time | Yes | ||
| state | Yes | ||
| title | Yes | ||
| endsAt | Yes | ||
| source | Yes | ||
| startsAt | Yes | ||
| timezone | Yes | ||
| exercises | Yes | ||
| supersets | Yes |