curl -X POST https://api.runtools.ai/v1/sandboxes/sandbox-abc123/exec \ -H "X-API-Key: $RUNTOOLS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "command": "npm test", "timeout": 120000, "cwd": "/workspace" }'
{ "data": { "stdout": "Tests passed\n", "stderr": "", "exitCode": 0, "executionTime": 2341 } }
Run a shell command inside a sandbox
Documentation IndexFetch the complete documentation index at: https://docs.runtools.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.runtools.ai/llms.txt
Use this file to discover all available pages before exploring further.