Update Workout
update_workoutClone an existing workout, apply step or metadata edits, and create a replacement library workout without altering the original; optionally delete the old workout afterward.
Instructions
Clone an existing workout, apply edits, and create a replacement workout.
Sport-agnostic: works for running, cycling, and strength library workouts.
For strength-specific field vocabulary and examples, call
get_strength_workout_schema. For run-specific schema, use
get_run_workout_schema.
This does not mutate the original workout in place. The replacement workout is created in the library, and the caller can optionally delete the old workout afterward.
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>"
},
"name": "update_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional replacement workout name. | |
| workout_id | Yes | Existing workout ID from list_workouts. | |
| step_updates | No | Per-step patches identified by one of: - step_index - step_id - step_name Supported update keys: - name - overview - target_type (accepts 'time', 'distance', 'reps', or raw ints) - target_value - target_distance_meters (run) - target_duration_seconds (run) - target_display_unit - intensity_type - intensity_value - intensity_value_extend - intensity_display_unit - rest_type - rest_value - rest_seconds (strength-friendly alias for rest_value) - sets - origin_id (strength exercise swap — usually paired with name + overview) | |
| delete_original | No | Whether to delete the original workout after the replacement is created. | |
| estimated_time_seconds | No | Optional top-level estimated time in seconds. | |
| estimated_distance_meters | No | Optional top-level estimated distance in meters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||