save_structured_workout
Save approved structured workout steps to Final Surge Workout Builder for watch sync; overwrite saves old steps to backup and past dates are refused.
Instructions
Write the previewed steps into the Final Surge Workout Builder; Final Surge syncs them to the watch. preview_token must come from preview_structured_workout for exactly these name and steps, after the athlete approved the preview (or inside the approved nightly task). Refuses past dates, and refuses a workout that already has steps unless overwrite=true; an overwrite saves the old steps to a backup file first.
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_key": "<workout_key>",
"date": "<date>",
"name": "<name>",
"steps": "<steps>",
"preview_token": "<preview_token>"
},
"name": "save_structured_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| name | Yes | ||
| steps | Yes | ||
| overwrite | No | ||
| workout_key | Yes | ||
| preview_token | Yes |