Replace Scheduled Workout
replace_scheduled_workoutReplace an existing scheduled workout by cloning a library workout, applying step edits, scheduling the new entry, and removing the original scheduled entry.
Instructions
Replace a scheduled workout by cloning the library workout, applying edits, scheduling the replacement, and removing the old scheduled entry.
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": {
"plan_id": "<plan_id>",
"id_in_plan": "<id_in_plan>",
"happen_day": "<happen_day>"
},
"name": "replace_scheduled_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional replacement workout name. | |
| plan_id | Yes | Existing scheduled plan ID from list_scheduled_workouts. | |
| sort_no | No | Order in the schedule for the replacement workout. | |
| happen_day | Yes | Day to schedule the replacement workout on, in YYYYMMDD format. | |
| id_in_plan | Yes | Existing scheduled entity ID from list_scheduled_workouts. | |
| workout_id | No | Existing library workout ID. | |
| step_updates | No | Same step patch format as update_workout. | |
| plan_program_id | No | Fallback program ID when workout_id is not known. | |
| estimated_time_seconds | No | Optional replacement top-level time in seconds. | |
| delete_original_workout | No | Whether to delete the original library workout after replacement. | |
| estimated_distance_meters | No | Optional replacement top-level distance in meters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||