exec
Run shell commands in an isolated Linux sandbox with configurable timeout, working directory, and stdin input.
Instructions
Execute a shell command in the sandbox.
Args: command: Shell command to run (e.g., "ls -la", "echo hello", "cat /etc/os-release") timeout: Max seconds to wait (default 30) workdir: Working directory inside the sandbox (default /workspace) stdin: Optional input to pipe into the command's stdin sandbox: Named sandbox to use (default "default")
Returns: Command output with stdout, stderr, exit code, and execution time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| workdir | No | /workspace | |
| stdin | No | ||
| sandbox | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |