Get time report
get_reportGet a time report for a period: total active seconds, top apps, and top projects with sub-projects. Filter by device, hour, or weekday.
Instructions
Aggregate Vetroscope time report for a period: total active seconds, top apps, and top projects (with sub-projects nested when present — e.g. individual YouTube videos, SoundCloud songs, Netflix episodes). Apps include the user's custom display_name when set. Applies the same SQLite settings as the desktop dashboard — ignored apps, ignored projects/breakdown patterns, and days_filter — plus optional hour-of-day/weekday/device filters layered on top. totalSeconds is wall-clock (each 30s bucket counted once even if two apps or two devices overlap). Per-app seconds are per-app buckets, so summing apps can exceed totalSeconds on overlap days. Do not sum the app rows and expect them to equal the header.
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_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| period | No | today | yesterday | week | month | year | a single date YYYY-MM-DD | an inclusive date range YYYY-MM-DD..YYYY-MM-DD | today |
| hour_end | No | Exclusive end hour 0-24 in local time. Combine with hour_start. | |
| top_apps | No | Max apps returned (default 50, 0 to omit) | |
| weekdays | No | Restrict to specific weekdays. 0=Sunday, 1=Monday, …, 6=Saturday. Omit or pass [0,1,2,3,4,5,6] for no weekday filter. | |
| hour_start | No | Inclusive start hour 0-24 in local time. Combine with hour_end (e.g. 9 and 17 = 9am to 4:59pm). Omit both for no hour filter. | |
| top_projects | No | Max projects returned (default 50, 0 to omit) | |
| top_sub_projects | No | Max sub-projects per project (default 25, 0 to omit) |