execute_code
Run JavaScript in a sandboxed kernel to chain multiple tool calls. Executes code with access to downstream tools, returning only the final result.
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__ = ...`. |