run_code
Execute Python, JavaScript, or shell snippets in secure Docker containers without network access, returning bounded stdout, stderr, and exit status.
Instructions
Run code without network or host mounts and return bounded stdout, stderr, and status.
The timeout may be 1-30 seconds. Output is truncated at the operator-controlled limit. Images must already exist locally; this tool never pulls an image on the agent's behalf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| language | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| language | Yes | ||
| exit_code | Yes | ||
| timed_out | No | ||
| duration_ms | Yes | ||
| output_truncated | No |