Run a command in a container
exec_in_containerRun commands in a running Docker container and return combined stdout/stderr with exit code, stopping after a timeout; confirm before changes.
Instructions
Run a command in a running container and return its exit code and output (stdout and stderr together), stopped after timeoutSeconds. The command is a list, one argument per item; for a shell line, use ["sh", "-c", "…"]. Can change the container: confirm with the person first unless it only reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| user | No | ||
| command | Yes | ||
| workdir | No | ||
| container | Yes | The container's name or id, as its list gives it | |
| timeoutSeconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| exitCode | Yes | ||
| truncated | Yes | The start was left out: it was longer than a model's context fits |