Run code in the sandbox
The left side is yours: the functions a host hands to the sandbox, running in this page against mocked data, and the code an agent would write against them. Press Run and the code executes in a Worker inside an opaque-origin frame, through @faustine-ai/browser-sandbox as installed from npm. The right side is the RunResult: value or error, the console, every call and its decision.
Pick an example to see approval, the busy-loop watchdog, the call cap or what an escape attempt finds. Nothing leaves your browser.
Functions
Host · runs in the page
Agent code
Sandbox · runs in the Worker
Output
RunResult
Not run yet · caps timeout 20 s · busy 3 s · 50 ops · frame srcdoc
Console
console.log in the agent code and log() in the functions land here.
Calls
Every function call that crossed the bridge, with its decision.