health_get_exercises
Retrieve exercise log entries by date and activity type. Uses local cache by default or fetches live from the API to return duration, calories, average heart rate, distance, and source.
Instructions
Get exercise log entries (individual tracked activities).
Returns exercise sessions from the local cache by default. Use live=True to fetch from the API. Run health_sync first to populate the cache.
Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "30d". Default: last 30 days. end_date: End date as "YYYY-MM-DD". Default: today. exercise_type: Filter by activity name (case-insensitive substring match), e.g. "cycling", "walk", "run". Default: all types. live: If true, re-fetch this window from the API before reading the cache.
Returns exercise entries with name, duration, calories, avg heart rate, distance, and source (auto-detect vs manual). Note: HR data from cycling may be unreliable (optical sensor vs handlebar grip).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | ||
| end_date | No | ||
| start_date | No | ||
| exercise_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |