get_usage
Retrieve token usage for a Cursor Cloud agent, including total consumption and per-run breakdowns. Filter by run ID to scope usage to a specific run.
Instructions
Token usage for an agent, total + per 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": {
"id": "<id>"
},
"name": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent id | |
| runId | No | Scope to one run |