302AI Sandbox MCP Server

Official

runCommand

Execute command line operations on a specific Linux sandbox via the 302AI Sandbox MCP Server. Returns text output only, with optional environment variables and timeout settings for efficient task management.

Instructions

Run a command line command on a specific linux sandbox. This returns text output only. For operations that generate files, you'll need to use separate file viewing and download endpoints.

Input Schema

NameRequiredDescriptionDefault
cmdYesThe command line command to run
envsNoEnvironment variables to set when running the command
sandbox_idYesThe ID of the sandbox to run the command on
timeoutNoThe timeout for command execution in seconds. When installing dependencies or performing similar operations, it is recommended to set it to above 120 seconds.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cmd": { "description": "The command line command to run", "type": "string" }, "envs": { "additionalProperties": { "type": "string" }, "description": "Environment variables to set when running the command", "type": "object" }, "sandbox_id": { "description": "The ID of the sandbox to run the command on", "type": "string" }, "timeout": { "default": 60, "description": "The timeout for command execution in seconds. When installing dependencies or performing similar operations, it is recommended to set it to above 120 seconds.", "type": "integer" } }, "required": [ "cmd", "sandbox_id" ], "type": "object" }

You must be authenticated.

Other Tools from 302AI Sandbox MCP Server

Related Tools

ID: n4r8aw20s4