query_samples
Retrieve Apple HealthKit records by type and date range, with optional daily aggregation or raw output, to build reports and analyze health trends.
Instructions
读 HealthKit 样本。type 可写全名或简写(bodyMass/bodyFatPercentage/stepCount/heartRate…);agg=daily 按天聚合。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>"
},
"name": "query_samples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agg | No | ||
| end | No | 止(不含):YYYY-MM-DD(UTC 0 点)或带时区 ISO8601 | |
| type | Yes | ||
| limit | No | ||
| start | No | 起(含):YYYY-MM-DD(UTC 0 点)或带时区 ISO8601 |