stream_heart_rate
Stream heart rate data from Apple Watch via HealthKit observer for a set time window, returning timestamped samples.
Instructions
Collect heart rate readings from Apple Watch over a time window.
Runs the HealthKit observer for the given duration and returns all samples received, including any buffered readings from the last 5 minutes that hadn't been reported yet.
Note: Apple Watch syncs data through iPhone to Mac via iCloud, so "real-time" updates have network-dependent latency (typically 10-60 s).
Args: duration_seconds: How long to collect readings (1–300 s). Default 30.
Returns: JSON array of heart rate samples, ordered by timestamp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |