get_app_usage
Retrieve per-application time-on-task for the last N hours, including app names, foreground seconds, and focus sessions, sorted by usage time.
Instructions
Return per-application time-on-task over the last N hours.
Returns a list of (app_name, foreground_seconds, focus_sessions) entries, sorted by foreground time descending.
USE WHEN: you want a clean app-level breakdown without OCR/keyword data. NOT FOR: full activity summary including content — use get_activity_summary.
BEHAVIOR: pure read from foreground-window log. No side effects. Granularity is per-second.
PARAMETERS: hours: lookback window. Range 1-24. Default 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |