query_health
Retrieve Mi Band health records for any time range: heart rate, steps, calories, distance, sleep sessions, and workouts, with pagination and aggregation options.
Instructions
Bounded cached detail: metric buckets, sleep sessions, or workouts.
Supply both start (inclusive) and end (exclusive) as offset-aware ISO timestamps, or neither for the last 24 hours (timeseries) / 30 days (sessions). limit 1..500; use returned pagination for more. Session IDs from summaries select a session. Missing buckets remain missing. Common metrics: heart_rate.bpm (default), steps, calories, distance. Additional metrics depend on the configured backend; see health://device-profile. aggregation_minutes: 1..1440. No arbitrary SQL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| kind | Yes | ||
| limit | No | ||
| start | No | ||
| metric | No | ||
| offset | No | ||
| timezone | No | ||
| session_id | No | ||
| aggregation_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||