run_program
Execute native programs directly in a hidden process, capturing clean stdout, stderr, and exit codes. Avoids shell interference for reliable output from tools like git, docker, node.
Instructions
Run a native executable DIRECTLY (no shell) in a hidden process and capture clean stdout/stderr + exit code. Use this for console programs like gh, git, docker, node, python, etc. -- their output is captured reliably, unlike when the same program is run inside run_powershell (where a hidden PowerShell swallows native stdout). Provide the program and an args array (no shell quoting needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. | |
| args | No | Arguments as an array; each element is passed verbatim (no shell quoting). | |
| program | Yes | Executable name on PATH or a full path, e.g. 'git' or 'C:\Program Files\GitHub CLI\gh.exe'. | |
| timeoutMs | No | Hard timeout in ms (default 60000). |