E2B
Arcade toolkit · docs.arcade.dev
The E2B toolkit integrates E2B sandboxed code execution into Arcade, enabling LLMs to run arbitrary code and generate visualizations in a secure, isolated environment.
Capabilities
- Sandboxed code execution: Run code snippets and capture stdout/stderr output without risk to the host environment.
- Matplotlib chart generation: Execute Python code that produces static matplotlib figures; results are returned as base64-encoded images ready for display or further processing.
Secrets
This toolkit requires the following secret:
E2B_API_KEY: An API key issued by E2B that authenticates requests to their sandbox API. Obtain it by signing in to the E2B dashboard, navigating to API Keys, and creating a new key. A free tier is available; higher usage limits require a paid plan. The key is a long alphanumeric string prefixed withe2b_.
Configure secrets in Arcade at https://docs.arcade.dev/en/guides/create-tools/tool-basics/create-tool-secrets or via the Arcade secrets dashboard.
Tools2
E2b_CreateStaticMatplotlibChart
Run the provided Python code to generate a static matplotlib chart. The resulting chart is returned as a base64 encoded image.
E2b_RunCode
Run code in a sandbox and return the output.