Execute TypeScript
execute_typescriptRun a TypeScript program in a sandbox that can call the external_ functions declared by search_tools. Use this to orchestrate multiple tool calls (looping, branching, combining results) in one round trip.
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 body. Call `external_<toolName>(args)` (from search_tools) to reach a tool; the value you `return` becomes the result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | No | ||
| error | No | ||
| result | No | ||
| success | Yes |