List Apple Health Workouts
apple_health_list_workoutsFetch workouts from an Apple Health export, filter by date range, limit the list size, and receive aggregate statistics computed over all matching entries.
Instructions
List bounded workouts from a local Apple Health export.xml. limit caps the returned LIST only: in summary privacy mode (the default) the aggregate block (count_by_activity, date_range, total_duration_minutes, total_distance, distance_units, total_energy_kcal, workout_count) is computed over every workout matching the filter, and truncated/limit_applied/matched_count say whether the list itself was cut. COST: this call reads the whole export file on each new query — roughly 33 ms per MB of export.xml (~3 s for 84 MB, ~11 s for 336 MB) — and start/end do not shorten it. Workouts are sparse in an export, so even non-summary modes usually reach the end of the file. Repeating an identical query is served from an in-memory cache and returns instantly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Optional ISO date/time upper bound. | |
| limit | No | ||
| start | No | Optional ISO date/time lower bound. | |
| privacy_mode | No | ||
| response_format | No | markdown |