execute_code
Run JavaScript in a sandbox to chain tool calls via callTool(name, args). Returns the final value or finalAnswer.
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__ = ...`. |