# List sandboxes

Tool: `veryfront__list_sandboxes`

List sandboxes.

## Arguments

| Name                | Type                                   | Required | Description                                                                                     |
| ------------------- | -------------------------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| `project_reference` | string                                 |          | Project UUID or slug whose billed sandboxes are listed. Omit it to list your private sandboxes. |
| `access_scope`      | string                                 |          | Provide the access scope. One of `project`, `private`.                                          |
| `cursor`            | string                                 |          | Cursor for pagination. Uses the sandbox ID.                                                     |
| `limit`             | integer · min 1 · max 100 · default 20 |          | Maximum sandboxes to return. Defaults to 20 and is capped at 100.                               |
| `sort_by`           | string · default created\_at           |          | Sort field. Defaults to created\_at. One of `created_at`, `status`.                             |
| `sort_order`        | string · default desc                  |          | Sort order. Defaults to desc. One of `asc`, `desc`.                                             |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_sandboxes",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"short_id\":\"string\",\"endpoint\":\"string\",\"status\":\"pending\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"stopped_at\":\"string\",\"access_scope\":\"project\",\"workspace_storage\":\"ephemeral\",\"ttl_mode\":\"default\",\"ttl_hours\":1,\"expires_at\":\"string\",\"created_at\":\"string\",\"last_activity_at\":\"string\",\"variable_snapshot\":{\"source_environment_id\":\"00000000-0000-0000-0000-000000000000\",\"variable_count\":0,\"copied_at\":\"string\"}}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "short_id": "string",
          "endpoint": "string",
          "status": "pending",
          "project_id": "00000000-0000-0000-0000-000000000000",
          "run_id": "00000000-0000-0000-0000-000000000000",
          "stopped_at": "string",
          "access_scope": "project",
          "workspace_storage": "ephemeral",
          "ttl_mode": "default",
          "ttl_hours": 1,
          "expires_at": "string",
          "created_at": "string",
          "last_activity_at": "string",
          "variable_snapshot": {
            "source_environment_id": "00000000-0000-0000-0000-000000000000",
            "variable_count": 0,
            "copied_at": "string"
          }
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
