Cursor: get usage
cursor_get_usageGet an agent's token usage totals and per-run breakdowns. Provide a run ID to view usage for a specific run.
Instructions
Report an agent's token usage, totalled and broken down per run. Pass runId to scope it to one run.
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": {
"agentId": "<agentId>"
},
"name": "cursor_get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | No | Run id, in `run-<uuid>` form. | |
| agentId | Yes | Agent id, in `bc-<uuid>` form. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | Yes | ||
| totalTokens | Yes | ||
| chargedCents | No |