create_workout
Create a structured Garmin Connect workout from steps, durations, distances, and targets, then optionally schedule it for a date so it syncs to the user's watch.
Instructions
Create a structured workout in Garmin Connect, optionally scheduling it on a date.
It syncs to the user's watch on the next sync. Requires GARMIN_ALLOW_WRITES=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | {name, sport: running|cycling|swimming|walking|hiking|strength_training|cardio_training|hiit|yoga|pilates|mobility|other, description?, steps: [...]}. Each step is {type: warmup|interval|recovery|rest|cooldown|other, one of duration_s | distance_m | lap_button: true, target?, note?} or {repeat: N, steps: [...]}. Targets: {type: hr_zone, zone}, {type: hr, bpm: [lo, hi]}, {type: power_zone, zone}, {type: power, watts: [lo, hi]}, {type: pace, min_per_km: ['4:50', '5:10']}, {type: speed, kmh: [lo, hi]}, {type: cadence, rpm: [lo, hi]}. | |
| schedule_on | No | YYYY-MM-DD; defaults to today |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||