run_command_wait
Run local commands that require Owner GUI approval, wait for approval and bounded output, then continue with the returned pending ID on timeout instead of reissuing.
Instructions
Run, wait for local Owner approval, then return bounded output.
interactive=True opts into the DEV_ONLY isolated numeric Python REPL.
Use wait_seconds=0 for prompt asynchronous observation, then send_input.
Owner permission comes only from the Windows GUI, not MCP. On a
wait timeout use await_command_result(pending_id) or existing output
tools; never repeat run_command_wait to avoid duplicate execution.Preferred command submission for tasks needing Owner GUI approval and a bounded wait for output. Use once per operation. On PENDING or timeout, continue through await_command_result with the returned pending_id; never reissue this command. ERROR OwnerReviewUnavailable (reason OWNER_SESSION_UNAVAILABLE, REVIEW_BUSY or OWNER_REVIEW_FAILED; launch_outcome NOT_STARTED) means no Owner dialog was shown and nothing ran: report it and wait for the Owner, never resubmit automatically.
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": {
"executable": "<executable>",
"argv": "<argv>",
"cwd": "<cwd>"
},
"name": "run_command_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute working directory for the process within the local Owner policy. | |
| argv | Yes | Exact string argument vector for one command; avoid credentials, scripts or private file content. | |
| timeout | No | Execution timeout in seconds, 0.01 to 3600; default 5. | |
| executable | Yes | Absolute path to the program binary; this is not a shell command string. | |
| request_id | No | Optional original request correlation ID (32 lowercase hex characters); NOT Owner permission. | |
| interactive | No | DEV_ONLY opt-in stdin PIPE for an Owner-reviewed isolated Python numeric REPL; default false. Requires background or asynchronous invocation. | |
| output_limit | No | Maximum captured output bytes, 128 to 65536; default 8192. | |
| wait_seconds | No | Seconds to await Owner click and original job, 0 to 90; default 50. On timeout use await_command_result, not run_command_wait again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||