List sandboxes
list_sandboxesLists sandboxes in the active or specified organization wallet, with filters for name, state, labels, and cost plus cursor pagination.
Instructions
List sandboxes. Your sandboxes. In an organization's scope (the active wallet, org, or X-Boat-Org) the list also holds every sandbox that organization pays for, whoever created it; createdBy and access say whose it is and what you may do with it. An unknown query parameter is refused with 400 invalid_query, which names it.
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": "list_sandboxes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Billing wallet for this request: an organization you belong to, by id (`team_…`) or by name as `GET /orgs` lists it (case-insensitive), or `personal`. Omitted, the account's active wallet applies (`PATCH /orgs/active`; personal until set). Two organizations sharing the name answer `409 ambiguous_org` and need the id. Sandboxes and snapshots stay creator-private. On `/environments` routes, only this query parameter selects the organization's shared environments; the `X-Boat-Org` header and the active wallet do not apply there. Members read them, owners and admins change them. | |
| name | No | Keep the sandboxes with exactly this name. | |
| sort | No | Sort direction for cursor pagination. | desc |
| label | No | `key=value`. Repeat it to require several labels, for example `label=session%3Dabc&label=env%3Dprod`. | |
| limit | No | Maximum items to return. | |
| state | No | Comma-separated sandbox state filter, for example `ready,idle,running`. | |
| cursor | No | Opaque pagination cursor returned as `pageInfo.nextCursor`. | |
| include | No | Comma-separated. `cost` adds each sandbox's `cost` this calendar month (UTC), at list price. `deletedCost` adds wallet-wide machine time of deleted sandboxes this list would show (not for API keys limited to some sandboxes). | |
| namePrefix | No | Keep sandboxes whose name starts with this text, for example `myapp-`. The match is literal. | |
| dataExpired | No | `true` keeps sandboxes whose data retention deleted (`dataExpiredAt` is set). `false` keeps the others. | |
| stoppedBefore | No | Keep stopped sandboxes that stopped before this ISO 8601 time. Every stop counts, auto-stops too. |