run_command
Submit a legacy immediate command to a Windows PC and receive a pending ID when Owner review is required; use only for immediate submission, not normal waiting workflows.
Instructions
Legacy immediate-start API. REVIEW returns pending_id.
interactive=True requires background=True and the DEV_ONLY isolated
Python numeric REPL allowlist, with explicit local launch review.
Prefer run_command_wait for normal work: it observes the Owner GUI
click and returns job output without asking the Owner to type
'approved'. Do not reissue a command merely to check its result.Use only for legacy immediate command submission. A REVIEW result needs a later status/wait call; normally prefer run_command_wait. Owner approval is local to Windows. Never resubmit the same operation on timeout or UNKNOWN. 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"
}
}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. | |
| 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 | |||