cmd_wait
Waits for a command run to finish or be approved or denied, then returns its status, exit code, duration, and last output lines; call again if the wait times out.
Instructions
Waits for one command run to finish, or for the owner to approve or deny it, then returns the same report as the call that started it: status, exit code, duration and the last output lines. It returns as soon as the run ends; when waitSeconds runs out first it reports the current state (waiting for approval, queued or running) and you call it again. Waiting changes nothing. WHEN TO USE: cmd_project, cmd_git, cmd_proc or cmd_shell gave you a run id instead of a result, because the run waits for approval or takes longer than its waitSeconds. Not for reading more output now (cmd_output), ending a run (cmd_stop) or finding a lost run id (cmd_list). An unknown run id is an error.
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": {
"runId": "<runId>"
},
"name": "cmd_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the commands guide first in the result. Use on your first commands call, or when told it changed. | |
| runId | Yes | The run number the starting call returned, for example 12. | |
| waitSeconds | No | Seconds to wait before reporting the current state (default 30, at most about 45, which keeps the call inside the client's time limit). |