get_task_usage
Retrieve per-execution local CLI invocation status and reported token usage for a task, marking unavailable data as false with a reason instead of zero. Use it to audit agent CLI usage.
Instructions
Read, per execution of a task, whether a local CLI was invoked and the token usage that CLI reported. Read-only. When usage is unavailable (for example a ChatGPT web execution never starts a local CLI) the entry says available=false with a reason; it is never reported as zero. Use get_task_result for the reports themselves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | No | Task id. Omit it to use the project's current workstream task, which is what you want almost always; pass it only to look up a historical task. | |
| project_id | Yes | Registered project id, as returned by list_projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |