Get focus heatmap (hour × weekday grid)
get_focus_heatmapReturns a 168-cell grid of active foreground seconds per weekday and hour, revealing patterns of when you perform specific activities. Optional filters narrow to a single app, project, or tag.
Instructions
Returns a dense 168-cell grid (7 weekdays × 24 hours) of active foreground seconds. Reveals when you usually do specific kinds of work — patterns the marginal hour-of-day and weekday distributions can't show. Optional app / project / tag filters narrow the heatmap to a single activity (e.g. 'when do I usually code in Cursor?'). Cells array is in (weekday, hour) order so cells[w*24 + h] indexes directly. 0=Sunday in weekday.
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 | month |
| app | No | Restrict to a single app (canonical name) | |
| project | No | Restrict to a single project (exact match) | |
| tag | No | Restrict to entries carrying a tag with this exact name | |
| 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. |