get_sleep
Retrieve per-night sleep stage durations in minutes, including REM, deep, core, awake, and in-bed time, attributed to the wake-up day. Filter by date range.
Instructions
Per-night sleep stage durations (minutes), attributed to the wake-up day.
Returns [{night, asleep_min, rem_min, deep_min, core_min, awake_min, in_bed_min}]. Older nights may report only in_bed_min (legacy devices lack stage detail).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Local calendar date, ISO 'YYYY-MM-DD'. | |
| start | Yes | Local calendar date, ISO 'YYYY-MM-DD'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |