execute_code
Execute JavaScript code in a sandboxed environment, enabling chaining of multiple tool calls by returning a single final value.
Instructions
Run a JavaScript snippet inside a sandboxed kernel. The snippet may call callTool(name, args) to invoke any downstream tool. Only the snippet's final return value (or the value assigned to __finalAnswer__) is returned to you — intermediate tool outputs stay in the sandbox. Use this to chain many tool calls in one round.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript source. May use top-level `await`. Must end with a return value or set `__finalAnswer__ = ...`. |
