Run shell
shell_runRun a shell command on your own machine and get back what it wrote. A real shell in a container: pipes, redirection and && all work, the working directory is /work and files there persist between calls. Use it to build, test, run scripts and move files about. A non-zero exit code comes back in the response rather than as an error, so read the output — a failing build is an answer
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory to run it in, under /work. Defaults to /work | |
| command | Yes | A shell command to run, e.g. 'go test ./... 2>&1 | tail -40' | |
| timeout | No | Seconds to allow, up to the instance's maximum. Defaults to 120 |