preview_workout
Render a drafted workout as Intervals.icu text before writing it, showing totals, expanded repeats, and step counts. No API call or data written.
Instructions
Use to show the athlete how a drafted workout will look before writing it: renders the workout document as Intervals.icu workout text with its totals (no API call, nothing written).
Expands repeats, sums planned duration and distance, counts steps with targets and open-ended steps, and shows the text add_or_update_event would send. Full check list: validate_workout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moving_time | No | Expected moving time in seconds, compared with the step sum | |
| workout_doc | Yes | Workout document with steps, as for add_or_update_event. Format: intervals://workout-syntax | |
| workout_type | No | Sport of the workout, e.g. Ride, GravelRide, Run | Ride |
| output_format | No | json = machine-readable, all fields | text |