Run sandbox command
sandbox_execExecute approved shell commands as root in an existing Lizard sandbox; cancellation, timeout, or request failure deletes the sandbox and files, while a nonzero exit code preserves it.
Instructions
Run a shell command inside an existing sandbox, as root. Requires the user's approval. Cancellation, timeout, or a failed command request destroys the whole sandbox and all its files to stop remote code. A nonzero command exit code preserves it. Use an ephemeral sandbox created for this task. Output is capped at 64 KiB per stream; do not blindly retry a failed command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | /workspace | |
| command | Yes | ||
| confirm | Yes | User approved the command and loss of sandbox files if cancellation, timeout, or request failure requires cleanup | |
| sandboxId | Yes | Exact sandbox ID from sandbox_create or sandbox_list | |
| timeoutMs | No |