get_heart_rate_history
Retrieve heart rate history from HealthKit for a specified number of hours. Returns samples with bpm, timestamp, source, and device.
Instructions
Retrieve heart rate history stored in macOS HealthKit.
Returns all samples recorded within the past N hours, sorted oldest-first. Data comes from Apple Watch and any other HealthKit sources (e.g. Workout app).
Args: hours: How many hours of history to fetch (default 24, max ~168 for a week).
Returns: JSON array of heart rate samples, each with bpm / timestamp / source / device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |