> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Run sandbox command

> Run a sandbox command.

`veryfront__run_sandbox_command`

Requires project.sandboxes.manage.

## Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

**Call type:** Can change resources.

## Arguments

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `sandbox_id` | `string` | Yes | Sandbox UUID, as returned by createSandbox. Format: `uuid`. |
| `command` | `string` | Yes | Provide the command. Minimum length: `1`. |
| `cwd` | `string` | No | Provide the cwd. |
| `timeout_seconds` | `integer` | No | Provide the timeout seconds. Default: `30`. Maximum: `55`. |
| `env` | `object` | No | Provide the env. |

## Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See [MCP client setup](https://veryfront.com/docs/cloud/getting-started/connect-mcp.md).

```json title="request.json" theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__run_sandbox_command",
    "arguments": {
      "sandbox_id": "00000000-0000-4000-8000-000000000000",
      "command": "example"
    }
  }
}
```

## Result

The published output shape is summarized below. Inspect both the MCP response content and `isError` when handling a call.

| Field | Type | Required |
| - | - | - |
| `stdout` | `string` | Yes |
| `stderr` | `string` | Yes |
| `exit_code` | `integer` | Yes |

## Full schemas

```json title="input-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "sandbox_id": {
      "type": "string",
      "format": "uuid",
      "description": "Sandbox UUID, as returned by createSandbox."
    },
    "command": {
      "type": "string",
      "minLength": 1,
      "description": "Provide the command."
    },
    "cwd": {
      "type": "string",
      "description": "Provide the cwd."
    },
    "timeout_seconds": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 55,
      "description": "Provide the timeout seconds.",
      "default": 30
    },
    "env": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "description": "Additional structured values supplied to the tool."
      },
      "description": "Provide the env."
    }
  },
  "required": [
    "sandbox_id",
    "command"
  ],
  "additionalProperties": false,
  "description": "Arguments for the run_sandbox_command tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
```

```json title="output-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "stdout": {
      "type": "string"
    },
    "stderr": {
      "type": "string"
    },
    "exit_code": {
      "type": "integer"
    }
  },
  "required": [
    "stdout",
    "stderr",
    "exit_code"
  ],
  "additionalProperties": false,
  "description": "Result of the command, run to completion.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
```

<details>
  <summary>Try this tool</summary>

  Replace sample arguments with values for your project or connected account. Calls run only when you select Run tool.

  MCP tool call

  Call `veryfront__run_sandbox_command` against the Veryfront MCP endpoint.

  Bearer token or API key

  Arguments (JSON)

  Run this tool with these arguments.

  Run tool

  Output JSON

  <pre />
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.