Run code in sandbox
Code Sandbox
Run code in sandbox
Run JavaScript or Python code in a secure sandbox with optional input state. Returns a tool-shaped result (output, errors). Use to test scripts or preview tool behavior before saving as a tool.
POST
Run code in sandbox
Authorizations
Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:
Body
application/json
Response
Code run result