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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lab": "<lab>",
"service": "<service>",
"command": "<command>"
},
"name": "lab_exec"
}
}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 |