# Cancel sandbox background command

Tool: `veryfront__cancel_sandbox_background_command`

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

## Arguments

| Name         | Type                  | Required | Description                                                          |
| ------------ | --------------------- | -------- | -------------------------------------------------------------------- |
| `sandbox_id` | string · uuid         | Yes      | Sandbox UUID, as returned by createSandbox.                          |
| `command_id` | string · min length 1 | Yes      | Background command ID, as returned by startSandboxBackgroundCommand. |

## 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__cancel_sandbox_background_command",
    "arguments": {
      "sandbox_id": "00000000-0000-0000-0000-000000000000",
      "command_id": "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"
    }
  }
}
```
