Execute TypeScript
execute_typescriptExecute a TypeScript program that orchestrates the available tools in a sandbox. Prefer this over calling tools one at a time when a task needs multiple tool calls, batching, aggregation, or arithmetic.
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": "execute_typescript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A TypeScript program that orchestrates the available external_* tools and returns a final value. Use Promise.all to batch calls; do arithmetic in JS. End with `return <value>`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | No | ||
| error | No | ||
| result | No | ||
| success | Yes |