get_workout_activities
Retrieve a workout's interval and segment breakdown—warmup, work, rest, and cooldown steps—with distance, duration, heart rate, and timing.
Instructions
Get the interval/segment breakdown of a workout (warmup, work, rest periods).
This extracts the 'activities' array from a workout, which describes the structured program that was followed — one entry per step the watch ran (warmup, work, rest, cooldown), each with distance, duration, heart rate, and timing.
Args: workout_id: UUID of the workout.
Returns: List of activity segment objects, each with: activityType, startDate, endDate, duration, totalDistance, totalEnergyBurned, averageHeartRate, and metadata — metadata.WOIntervalStepKeyPath encodes the position in the composed structure as "block.iteration.step" (e.g. "1.2.0" = 2nd block, 3rd iteration, 1st step; map it to the queue item's blocks to know whether a segment was work or recovery), with WOIntervalStepSuccessful/HKElevationAscended alongside. Returns an empty list if the workout has no structured activities.
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_id": "<workout_id>"
},
"name": "get_workout_activities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workout_id | Yes |