activitywatch_run_query
Query ActivityWatch time tracking data to analyze application usage, browsing history, and productivity patterns using custom time periods.
Instructions
Run a query in ActivityWatch's query language
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"timeperiods": "<timeperiods>",
"query": "<query>"
},
"name": "activitywatch_run_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeperiods | Yes | Time periods to query. Format: ['2024-10-28/2024-10-29'] where dates are in ISO format and joined with a slash | |
| query | Yes | MUST BE A SINGLE STRING containing all query statements separated by semicolons. DO NOT split into multiple strings. | |
| name | No | Optional name for the query (used for caching) |