run_command
Submits a legacy one-shot command on a Windows PC for Owner review and returns a pending_id for status tracking; use the wait API when you need the result.
Instructions
Legacy one-shot command submission. REVIEW returns pending_id. Prefer run_command_wait. interactive=True requires background=True and the DEV_ONLY numeric Python REPL allowlist.
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"
}
}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. | |
| background | No | Whether to return immediately after launch; default false, unlike the wait API. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||