# E2b AI integration on Definable

> Open-source Code Interpreting for AI Apps.

## What this connects

Open-source Code Interpreting for AI Apps. Run sandboxed code execution environments with support for multiple programming languages.

Vendor: https://e2b.dev

## Tools available

**27** tools available. First 12:

- `E2B_CONNECT_SANDBOX` — Connect to Sandbox — Tool to connect to an existing E2B sandbox and retrieve its details. Use when you need to reconnect to a sandbox from different environments or resume a paused sandbox. The TTL is extended upon connection.
- `E2B_CREATE_TEMPLATE` — Create Template — Tool to create a new E2B template with specified configuration. Use when you need to define a new sandbox template that can be used to spawn sandbox environments.
- `E2B_CREATE_WEBHOOK` — Create Webhook — Tool to register a new webhook to receive sandbox lifecycle events for the team. Use when you need to set up notifications for sandbox lifecycle events such as creation, updates, or termination.
- `E2B_DELETE_SANDBOXES` — Delete Sandbox — Tool to terminate and permanently delete a running E2B sandbox instance. Use when you need to kill a sandbox that is no longer needed. Once terminated, the sandbox cannot be resumed.
- `E2B_DELETE_WEBHOOK` — Delete Webhook — Tool to unregister a webhook and stop receiving lifecycle events. Use when you need to remove a webhook that is no longer needed or to clean up webhook registrations.
- `E2B_GET_HEALTH` — Check API Health — Tool to check the health status of the E2B API. Use when you need to verify that the API service is operational and accessible.
- `E2B_GET_SANDBOX` — Get Sandbox — Tool to retrieve detailed information about a specific sandbox by its ID. Use when you need to check sandbox status, metadata, or configuration details.
- `E2B_GET_SANDBOXES_LOGS` — Get Sandbox Logs — Tool to retrieve logs from a specific E2B sandbox instance. Use when you need to debug or monitor sandbox execution by viewing its console output and system logs.
- `E2B_GET_SANDBOX_LIFECYCLE_EVENTS` — Get Sandbox Lifecycle Events — Tool to retrieve the latest lifecycle events for a particular sandbox instance. Use when you need to track state changes including creation, pausing, resuming, updates, and termination of a sandbox.
- `E2B_GET_SANDBOX_METRICS` — Get Sandbox Metrics — Tool to retrieve timestamped CPU, memory, and disk usage metrics for a sandbox. Use when you need to monitor resource usage of a running sandbox. Metrics are collected every 5 seconds; returns empty array if no metrics available yet.
- `E2B_GET_TEAMS_METRICS` — Get Team Metrics — Tool to retrieve timestamped CPU, memory, and disk usage metrics for a team. Use when you need to monitor aggregated resource usage across all sandboxes belonging to a team.
- `E2B_GET_TEAMS_METRICS_MAX` — Get Team Maximum Metrics — Tool to retrieve the maximum value for a specific team metric in a given interval. Use when you need to check team limits or peak usage, such as maximum concurrent sandboxes allowed or highest resource usage.

## Auth

Auth schemes: `API_KEY`.

## How agents use E2b

Inside a Definable workflow, E2b is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → E2b** — the Researcher (GPT-5.5) pulls context from E2b (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → E2b** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into E2b (create record, post message, draft email).
- **Designer / Engineer → Distributor → E2b** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via E2b (attach file, open PR comment, post status).

The Verifier checks every E2b call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- developer tools — https://definable.ai/apps/category/developer-tools/

## Related

- HTML page: https://definable.ai/apps/e2b/
- Same category (developer tools): https://definable.ai/apps/category/developer-tools/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
