Get daily totals (calendar / heatmap)
get_calendarRetrieve daily active and passive seconds for a given period, with device filtering. Useful for analyzing streaks and gaps in activity.
Instructions
Dense per-day series of active and passive seconds for a period. Default period is 'year' for the GitHub-contribution-grid heatmap; pass any other period for narrower windows. Days with zero activity are explicitly included so streak / longest-gap analysis is straightforward.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | today | yesterday | week | month | year | a single date YYYY-MM-DD | an inclusive date range YYYY-MM-DD..YYYY-MM-DD. Defaults to 'year'. | year |
| device | No | Restrict to a single device. Pass 'current' (or 'this') for the local machine, a device UUID from get_device_breakdown, or a platform name like 'darwin', 'win32', 'browser-extension'. Omit or pass 'all' for no device filter. |