create_workout
Create a structured workout and deliver it to the user's Apple Watch. Provide a singleGoalWorkout (a single time, distance, energy or open goal) or a customWorkout (interval blocks with optional warmup/cooldown) — the same shape Workouter's own generator produces. If the user has no Apple Watch registered, this returns a link they can open on their phone to send the workout over instead, plus the same link as a QR code they can scan with their phone; that needs the Workouter iOS app installed, and email_workout_link can send the same link to the account's email. When the workout is pushed to a registered Apple Watch, the same kind of link is returned in case the push doesn't arrive. Enabled linked Garmin installations use the saved preferred destination (or the single registered watch); multiple destinations need selection. Garmin queue/download status never confirms native import.
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": {
"workoutType": "<workoutType>",
"activityType": "<activityType>",
"location": "<location>",
"displayName": "<displayName>",
"swimmingLocation": "<swimmingLocation>"
},
"name": "create_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | singleGoalWorkout only, and required there. Time, distance, distanceAndDuration, energy, or open goal. For type "time": include targetDuration (seconds) and unit "seconds". For type "distance": include targetValue and a distance unit. For type "distanceAndDuration" (pool swim send-off sets, e.g. "4 x 100 @ 1:45"): include targetDistance, distanceUnit, and targetDuration (seconds) — WorkoutKit waits out the remaining time if the swimmer finishes the distance early, which is what produces send-off pacing. Only valid for swimming. For type "energy" (singleGoalWorkout only; Apple Watch rejects energy on interval, warmup and cooldown steps): include targetValue (active kilocalories) and unit "kilocalories"; the workout ends once that much is burned. For type "open": no other fields; the step has no target and the athlete ends it on the watch (e.g. "stretch, press lap when done"). | |
| blocks | No | customWorkout only, and required there. Interval blocks, each repeated `iterations` times. | |
| warmup | No | customWorkout only, optional. | |
| cooldown | No | customWorkout only, optional. | |
| location | Yes | ||
| displayName | Yes | Friendly display name for the workout | |
| workoutType | Yes | "singleGoalWorkout" for one goal: time, distance, energy or open (set goal). "customWorkout" for intervals (set blocks, plus optional warmup and cooldown). | |
| activityType | Yes | Activity type in camelCase. Measured goal support: time and open goals for every measured activity, and energy goals in a singleGoalWorkout; distance goals for running, cycling, swimming, walking, hiking and outdoor rowing, but not indoor rowing, elliptical, other (a generic workout) or the 4 gym types (functionalStrengthTraining, traditionalStrengthTraining, highIntensityIntervalTraining, crossTraining); distanceAndDuration for swimming only. Other activities are checked by Apple Watch when the workout is created. There are no reps, sets, rounds or load for any activity. | |
| swimmingLocation | Yes | Required as pool or openWater for swimming; empty for other activities |