wasm_run_vm_sandbox
Execute JavaScript code safely in a sandboxed VM with enforced timeout and zero filesystem access to prevent harmful operations.
Instructions
Executes JavaScript in an isolated Node.js VM context with strict execution timeout and zero filesystem access
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "wasm_run_vm_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code string to evaluate | |
| timeoutMs | No | Execution timeout in ms (default: 2000) |