sandbox_exec
Execute shell commands within a secure Node.js sandbox container to run JavaScript code, install NPM packages, and retrieve execution results safely.
Instructions
Execute one or more shell commands inside a running sandbox container. Requires a sandbox initialized beforehand.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
commands | Yes | ||
container_id | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"commands": {
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
"container_id": {
"type": "string"
}
},
"required": [
"container_id",
"commands"
],
"type": "object"
}