# Start sandbox background command

Tool: `veryfront__start_sandbox_background_command`

Start a background command. Requires project.sandboxes.manage.

## Arguments

| Name              | Type                            | Required | Description                                 |
| ----------------- | ------------------------------- | -------- | ------------------------------------------- |
| `sandbox_id`      | string · uuid                   | Yes      | Sandbox UUID, as returned by createSandbox. |
| `command`         | string · min length 1           | Yes      | Provide the command.                        |
| `cwd`             | string                          |          | Provide the cwd.                            |
| `timeout_seconds` | integer · max 600 · default 600 |          | Provide the timeout seconds.                |
| `env`             | object                          |          | Provide the env.                            |

## 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__start_sandbox_background_command",
    "arguments": {
      "sandbox_id": "00000000-0000-0000-0000-000000000000",
      "command": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"command_id\":\"string\",\"command\":\"string\",\"signal\":\"string\",\"heartbeat_status\":\"disabled\",\"last_heartbeat_at\":\"string\",\"last_heartbeat_error\":\"string\",\"heartbeat_failure_count\":0,\"status\":\"pending\",\"exit_code\":0,\"started_at\":\"string\",\"finished_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "command_id": "string",
      "command": "string",
      "signal": "string",
      "heartbeat_status": "disabled",
      "last_heartbeat_at": "string",
      "last_heartbeat_error": "string",
      "heartbeat_failure_count": 0,
      "status": "pending",
      "exit_code": 0,
      "started_at": "string",
      "finished_at": "string"
    }
  }
}
```
