update_workout
Change an existing workout template. workout_id names the workout and workout_name is its current name, which must match. Folder membership is never changed. Omitted fields keep their current values.
name renames the workout. exercises replaces the entire exercise list, including all exercises and sets to retain. Progression links are preserved for exercises that keep their name. Each exercise uses an exact catalog or custom exercise display name, target (reps|time), load (weight|percent), working sets, and rest configuration, with optional warmup sets, supersets, RPE, and notes. The input schema defines the fields and constraints. Notes appear on the watch in the workout step description.
warmup turns the open warmup step at the start on or off; omitted, it stays as it is. Per exercise wait_for_lap_after: omitted, an exercise that was already in the workout keeps its value and a newly added exercise gets the user's workout settings. Pass either only when the user asked to change it. The result reports the final warmup and wait_for_lap_count.
A rename-only request contains workout_id, workout_name and name; it does not require exercises.
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": {
"workout_id": "<workout_id>",
"workout_name": "<workout_name>"
},
"name": "update_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the workout (a rename) | |
| warmup | No | Turn the open warmup step at the start of the workout on or off. Omit to leave it as it is; pass it only when the user asked to change it. Adds one step. | |
| exercises | No | Full replacement exercise list, including all exercises and sets to retain. Exercises absent from this array are removed. Omission of this field preserves the existing exercise list. The workout must fit within 100 steps: each warmup or working set counts as one step, plus one for each timed or lap rest, one for the workout warmup and one for each wait for lap after an exercise. Off rests add no steps. | |
| workout_id | Yes | The workout's workout_id, as a tool result lists it | |
| workout_name | Yes | The workout's current name, as its tool result lists it. Checked against workout_id; a mismatch is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Final workout name after the update | |
| warmup | Yes | Final state: the workout starts with the open warmup step | |
| updated | Yes | Which slices were written | |
| set_count | Yes | ||
| workout_id | Yes | ||
| previous_name | No | Present only when the name actually changed | |
| exercise_count | Yes | ||
| wait_for_lap_count | Yes | Final state: exercises followed by a wait for the lap button, including any the user's workout settings added to newly added exercises |