get_sleep
Retrieve a pet's night sleep and daytime nap minutes from a Fi smart collar, organized as daily, weekly, or monthly buckets newest first.
Instructions
Night sleep and daytime nap minutes, newest first. The first entry is the current, unfinished period.
"daily" gives minutes per day; a day with no rest recorded (collar off all day) shows null. "weekly" (Monday to Sunday) and "monthly" give totals over the days with data, how many days that is, and the average rest per day.
Fi files a night's sleep under the date the night started, so today's night sleep reads 0 until tonight. Fi's split between night sleep and naps swings a lot from day to day; their total is the steadier number.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_sleep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pet | No | Pet name or Fi pet id. Leave empty if there is only one dog on the account. | |
| count | No | How many buckets, newest first. Max 90 daily, 26 weekly, 12 monthly. | |
| period | No | Size of each bucket. | daily |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||