Run a command
run_commandExecute a command in a durable cloud environment to get its exit code and output, resuming a paused environment. Pass argv as a list; set cwd, env, or timeout as needed.
Instructions
Run one command in an environment and get its exit code and output. Not a shell: pass argv as a list, and ask for a shell explicitly with ["/bin/sh","-lc","…"] if you want one. A paused environment resumes to serve this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| argv | Yes | ||
| timeout_ms | No | Give up after this long. PASS IT. Clamped by the entitlement server-side, and without it the environment is allowed ten minutes — so a wedged environment costs you ten before you learn anything. Seconds to a couple of minutes suits most commands; raise it for builds. | |
| environment | Yes |