Check balance and runway
billing_balanceGet the workspace balance and how long it lasts: creditsBalance, activeUsageCost, floating_balance_usd (the balance net of what running instances have used so far, in USD), burn_usd_per_hour (what the running instances cost together) and runway_hours (hours the floating balance lasts at that rate; null when nothing runs), which says how soon the balance needs topping up before running work runs out of credit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "billing_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) |