run_command_wait
Submits one command for local Owner GUI approval and returns bounded job output, with an optional async wait. Use wait_seconds=0 to observe status without blocking.
Instructions
Submit one command for local Owner GUI approval and bounded job output. interactive=True requires background=True and the DEV_ONLY numeric Python REPL allowlist. Use wait_seconds=0 for asynchronous observation.
Follow Owner review outcomes in server instructions. TIMED_OUT has launch_outcome=NOT_STARTED. On PENDING follow the same pending_id via review_status/await_command_result: PENDING is observer wait only. Interactive SECOND_GUI Reject retains ERROR/OwnerAuthorizationRequired with launch_outcome=NOT_STARTED; report and wait.
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. TIMED_OUT (EXPIRED/CLOSED) is terminal: REPORT_AND_WAIT; never resubmit or ask for the window again. See tool help for outcome handling. | |
| 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 | Bounded observer wait in seconds, 0 to 90; default 50. PENDING means observation is incomplete; continue the SAME pending_id with the existing status/wait tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||