tool(...), and routes tool calls back to your app during sandbox execution.
Source: rayxc-org/raysurfer-ts
Setup
Install the SDK and setRAYSURFER_API_KEY in your environment.
Register Tools
tool(name, description, parameters, callback) can wrap any local callback you want to expose. The description is included in the tool payload.
Execute Modes
Use exactly one mode perexecute() call:
