getActivityWorkouts
Retrieve the planned workout an activity followed, including ordered steps, intensity, duration, targets, strength exercises, and coach notes. Use it to inspect the full plan when an activity has one.
Instructions
The planned workout that an activity followed, as created in Garmin Connect: its steps in order, each with its intensity (warmup/active/rest/recovery/cooldown), its duration (time in seconds, reps, or open), its target (cadence, heart rate, pace, or open, with low and high values), the exercise for strength steps, and the coach's notes. A step with durationType REPEAT_UNTIL_STEPS_CMPLT repeats the steps from stepIndex durationValue up to it, targetValue times in all. Use it for the whole plan and its notes. For plan against done (hit or miss), read the plan field of getActivitySets (strength) or getActivityLaps (runs) instead; a ride or a swim has no plan field. An empty list means the activity followed no planned workout. Null fields are left out.
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": {
"activityId": "<activityId>"
},
"name": "getActivityWorkouts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activityId | Yes | Garmin activity id |