Run JS Ephemeral
run_js_ephemeralExecute one-off JavaScript code in an isolated sandbox (Docker preferred) with optional dependencies, arguments, and timeout, without persisting a tool.
Instructions
Execute one-off Node.js code in the configured execution sandbox (Docker preferred, Node fallback) without persisting a tool
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": "run_js_ephemeral"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript function body to execute inside export async function run(args) { ... } | |
| args | No | ||
| image | No | Optional Docker image override | |
| dependencies | No | ||
| timeoutMs | No |