Get boat usage
get_sandbox_usageRetrieve a sandbox's billable machine time and cost so you can bill users per sandbox. Use since and until to calculate usage for a specific billing period.
Instructions
Get boat usage. Machine time one sandbox consumed, and what it costs, so you can bill your own users per sandbox. Same meter as GET /limits: billable seconds with the sandbox type's multiplier applied, paused past a refused stop, never counting time stopped. Narrow it to a billing period with since and until; a period boundary that falls inside a running stretch splits that stretch pro rata. Works while the sandbox runs and after it stops.
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": {
"sandboxId": "<sandboxId>"
},
"name": "get_sandbox_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Count from this time, ISO 8601 or Unix epoch seconds. Default is the sandbox's creation. | |
| until | No | Count up to this time, ISO 8601 or Unix epoch seconds. Default is now. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |