# Run sandbox command

Tool: `veryfront__run_sandbox_command`

Run a sandbox 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 55 · default 30 |          | 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__run_sandbox_command",
    "arguments": {
      "sandbox_id": "00000000-0000-0000-0000-000000000000",
      "command": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"stdout\":\"string\",\"stderr\":\"string\",\"exit_code\":0}"
      }
    ],
    "structuredContent": {
      "stdout": "string",
      "stderr": "string",
      "exit_code": 0
    }
  }
}
```
