sandbox_exec
Execute shell commands in an isolated Debian Linux sandbox for safe testing. Use stdin to pass data without shell escaping; filesystem persists between calls.
Instructions
Execute a shell command in an isolated Debian Linux sandbox. Commands run in bash. Each call is independent — no state (shell variables, working directory) persists between calls (however filesystem does persist). Use the working_directory parameter or chain commands with && to control execution context.
To write files or pass data without shell escaping, use the stdin parameter (e.g., command="cat > file.txt" with content in stdin). Commands time out after 120 seconds by default (override with the timeout parameter for long-running operations).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | List of arguments for direct execution (mutually exclusive with command). | |
| stdin | No | Content to pipe to stdin. | |
| command | No | Shell command string (mutually exclusive with args). | |
| timeout | No | Timeout in seconds (defaults to server config). | |
| temporary | No | Remove the computer when its MCP session shuts down. Set false to keep it provider-side and reconnect by computer_id. | |
| computer_id | No | Stable computer slug. Omit to create and select a readable random ID for this MCP session. | |
| working_directory | No | Working directory for the command (must be absolute). |