Run a command in a lab
lab_execRuns a command inside a running lab service and returns its exit code and output; use it to inspect or modify lab containers, confirming changes first.
Instructions
Run a command in one of a running lab's services, returning its exit code and output. The command is a list; for a shell line, ["sh", "-c", "…"]. Can change the lab: confirm with the person first unless it only reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lab | Yes | The lab's name, as list_labs gives it | |
| command | Yes | ||
| service | Yes | One of the lab's services, as lab_status gives them | |
| timeoutSeconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| exitCode | Yes | ||
| truncated | Yes |