NAiOS IconNAiOS Logo
Volver al catálogo

E2b

e2b

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

Acciones
27
Triggers
0
Autenticación
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (27)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Connect to SandboxE2B_CONNECT_SANDBOXAcción

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.

Parámetros de entrada

  • timeoutinteger

    Timeout in seconds for the sandbox connection. Maximum 86400 seconds (24 hours) for Pro users, 3600 seconds (1 hour) for Hobby users. Default is 300 seconds (5 minutes).

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to connect to.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create TemplateE2B_CREATE_TEMPLATEAcción

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.

Parámetros de entrada

  • aliasstringObligatorio

    Unique identifier for the template. This is a human-readable name used to reference the template.

  • cpuCountinteger

    Number of CPU cores to allocate to sandboxes using this template.

  • memoryMBinteger

    Amount of memory in megabytes to allocate to sandboxes using this template.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create WebhookE2B_CREATE_WEBHOOKAcción

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.

Parámetros de entrada

  • urlstringObligatorio

    HTTPS endpoint where webhook events will be delivered. Must be a valid HTTPS URL.

  • namestringObligatorio

    Human-readable identifier for the webhook.

  • eventsstring[]Obligatorio

    List of event types to subscribe to. Valid values: 'sandbox.lifecycle.created', 'sandbox.lifecycle.updated', 'sandbox.lifecycle.killed', 'sandbox.lifecycle.paused', 'sandbox.lifecycle.resumed'.

  • enabledbooleanObligatorio

    Whether the webhook actively receives events.

  • signatureSecretstringObligatorio

    Secret key used to verify webhook authenticity via HMAC signatures.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete SandboxE2B_DELETE_SANDBOXESAcción

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.

Parámetros de entrada

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to terminate.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete WebhookE2B_DELETE_WEBHOOKAcción

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.

Parámetros de entrada

  • webhook_idstringObligatorio

    The unique identifier of the webhook to delete.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Check API HealthE2B_GET_HEALTHAcción

Tool to check the health status of the E2B API. Use when you need to verify that the API service is operational and accessible.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get SandboxE2B_GET_SANDBOXAcción

Tool to retrieve detailed information about a specific sandbox by its ID. Use when you need to check sandbox status, metadata, or configuration details.

Parámetros de entrada

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to retrieve.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Sandbox LogsE2B_GET_SANDBOXES_LOGSAcción

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.

Parámetros de entrada

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to retrieve logs for.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Sandbox Lifecycle EventsE2B_GET_SANDBOX_LIFECYCLE_EVENTSAcción

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.

Parámetros de entrada

  • limitinteger

    Number of events to return. Default is 10, minimum is 1, maximum is 100.

  • offsetinteger

    Number of events to skip from the beginning. Default is 0.

  • orderAscboolean

    Sort direction—true for ascending chronological order, false for descending (default: false).

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to retrieve events for.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Sandbox MetricsE2B_GET_SANDBOX_METRICSAcción

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.

Parámetros de entrada

  • endinteger

    End timestamp for metrics filtering (Unix timestamp in seconds).

  • startinteger

    Start timestamp for metrics filtering (Unix timestamp in seconds).

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to retrieve metrics for.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Team MetricsE2B_GET_TEAMS_METRICSAcción

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.

Parámetros de entrada

  • endinteger

    End timestamp for metrics filtering (Unix timestamp in seconds).

  • startinteger

    Start timestamp for metrics filtering (Unix timestamp in seconds).

  • team_idstringObligatorio

    The unique identifier of the team to retrieve metrics for.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Team Maximum MetricsE2B_GET_TEAMS_METRICS_MAXAcción

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.

Parámetros de entrada

  • endinteger

    End timestamp for metrics filtering as Unix timestamp (seconds since epoch). If provided, returns maximum in the specified interval.

  • startinteger

    Start timestamp for metrics filtering as Unix timestamp (seconds since epoch). If provided, returns maximum in the specified interval.

  • metricstringObligatorio

    The metric type to retrieve the maximum value for. Allowed values are 'concurrent_sandboxes' for maximum concurrent sandbox limit or 'sandbox_start_rate' for sandbox start rate.

  • team_idstringObligatorio

    The unique identifier of the team to retrieve maximum metrics for.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Template Build StatusE2B_GET_TEMPLATES_BUILD_STATUSAcción

Tool to get the status of a template build. Use when you need to check the build status of a template that was started asynchronously. Useful in polling loops to monitor template builds in progress.

Parámetros de entrada

  • buildIDstringObligatorio

    The unique identifier of the specific build.

  • logsOffsetinteger

    Offset for fetching logs from a specific point. Used to retrieve logs incrementally without re-fetching previous entries. Defaults to 0.

  • templateIDstringObligatorio

    The unique identifier of the template.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Template FilesE2B_GET_TEMPLATES_FILESAcción

Tool to get an upload link for a tar file containing build layer files. Use when you need to retrieve or download template build layer files by their hash.

Parámetros de entrada

  • hashstringObligatorio

    The hash of the build layer files to retrieve.

  • templateIDstringObligatorio

    The unique identifier of the template.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Webhook ConfigurationE2B_GET_WEBHOOKAcción

Tool to retrieve the current webhook configuration for a specific webhook. Use when you need to inspect webhook settings, verify configuration, or check webhook status.

Parámetros de entrada

  • webhook_idstringObligatorio

    The unique identifier of the webhook to retrieve.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List All SandboxesE2B_LIST_SANDBOXESAcción

Tool to list all running and paused sandboxes associated with your team. Use when you need to view active sandboxes, monitor sandbox state, or retrieve sandbox identifiers for further operations. Supports pagination and filtering by state or metadata.

Parámetros de entrada

  • limitinteger

    Number of items per page. Must be between 1 and 100. Default is 100.

  • statestring[]

    Filter by sandbox state. Accepts 'running' and/or 'paused'. Multiple states are combined with AND logic.

  • metadataobject

    Key-value pairs to filter sandboxes by metadata set during creation. Multiple filters are combined with AND logic.

  • nextTokenstring

    Base64-encoded pagination token for fetching the next page of results.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Sandboxes MetricsE2B_LIST_SANDBOXES_METRICSAcción

Tool to retrieve timestamped CPU, memory, and disk usage metrics for multiple sandboxes. Use when you need to monitor resource usage across multiple sandboxes simultaneously. Metrics are collected every 5 seconds; returns empty array if no metrics available yet.

Parámetros de entrada

  • endstring

    End timestamp for metrics filtering (ISO 8601 format).

  • startstring

    Start timestamp for metrics filtering (ISO 8601 format).

  • sandbox_idsstring[]Obligatorio

    List of sandbox IDs to retrieve metrics for. Provide one or more sandbox identifiers.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Team Sandbox Lifecycle EventsE2B_LIST_TEAM_SANDBOX_LIFECYCLE_EVENTSAcción

Tool to retrieve the latest lifecycle events across all sandboxes associated with the team. Use when you need to monitor sandbox activity, track lifecycle changes, or audit sandbox operations.

Parámetros de entrada

  • limitinteger

    Number of events to return. Must be between 1 and 100. Default is 10.

  • offsetinteger

    Number of events to skip for pagination. Must be non-negative. Default is 0.

  • orderAscboolean

    Sort order for events. True for ascending (oldest first), false for descending (newest first). Default is false.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List All TemplatesE2B_LIST_TEMPLATESAcción

Tool to list all available E2B templates for your team. Use when you need to view available templates, retrieve template identifiers, or audit template configurations.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List All WebhooksE2B_LIST_WEBHOOKSAcción

Tool to retrieve all registered webhooks for your team. Use when you need to view all webhook configurations, audit webhook settings, or manage multiple webhooks.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Pause SandboxE2B_PAUSE_SANDBOXAcción

Tool to pause a running E2B sandbox preserving its filesystem and memory state. Use when you need to temporarily suspend a sandbox while maintaining its state for later resumption. Takes approximately 4 seconds per 1 GiB of RAM to pause. Paused sandboxes can be stored for up to 30 days.

Parámetros de entrada

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to pause.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create SandboxE2B_POST_SANDBOXESAcción

Tool to create a new E2B sandbox from a template. Use when you need to launch a fresh sandbox environment for code execution, testing, or development purposes.

Parámetros de entrada

  • envsobject

    Custom environment variables for the sandbox as key-value pairs. These will be available inside the sandbox environment.

  • timeoutinteger

    Timeout value in seconds for the sandbox session. Maximum is 86400 (24 hours) for Pro plan, 3600 (1 hour) for Hobby plan. Default is 300 seconds if not specified.

  • metadataobject

    Custom metadata key-value pairs for the sandbox. Use for tracking purpose, owner, or any other custom attributes.

  • autoPauseboolean

    Enable automatic pausing of the sandbox when inactive to save resources.

  • templateIDstringObligatorio

    The ID of the template to use for creating the sandbox. This identifies which preconfigured environment to launch.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set Sandbox TimeoutE2B_POST_SANDBOXES_TIMEOUTAcción

Tool to set the timeout for an E2B sandbox. Use when you need to extend or reduce the sandbox lifetime. The timeout is measured from the current time, and calling this multiple times overwrites the previous TTL.

Parámetros de entrada

  • timeoutintegerObligatorio

    Timeout duration in seconds from the time of this request. Minimum is 1 second. Maximum is 86400 seconds (24 hours) for Pro users, 3600 seconds (1 hour) for Hobby users. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point.

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to update the timeout for.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Refresh SandboxE2B_REFRESH_SANDBOXAcción

Tool to refresh an E2B sandbox and extend its time to live. Use when you need to keep a sandbox alive longer and prevent it from timing out.

Parámetros de entrada

  • sandbox_idstringObligatorio

    The unique identifier of the sandbox to refresh and extend its TTL.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Start Template BuildE2B_START_TEMPLATE_BUILDAcción

Tool to start a build for an E2B template. Use when you need to initiate the build process for a template with specific configuration. The build runs asynchronously and returns immediately with a 202 Accepted status.

Parámetros de entrada

  • forceboolean

    Whether the whole build should be forced to run regardless of the cache.

  • stepsobject[]

    List of steps to execute in the template build. Each step defines an operation to perform during the build process.

  • buildIDstringObligatorio

    Identifier of the build to start.

  • readyCmdstring

    Ready check command to execute in the template after the build to verify readiness.

  • startCmdstring

    Command to execute in the template after the build completes.

  • fromImagestring

    Base image to use for the template build. Specify either fromImage or fromTemplate, not both.

  • templateIDstringObligatorio

    Identifier of the template to build.

  • fromTemplatestring

    Base template to use for the template build. Specify either fromImage or fromTemplate, not both.

  • fromImageRegistryobject

    Registry authentication configuration for pulling base images.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update TemplateE2B_UPDATE_TEMPLATEAcción

Tool to update an E2B template configuration. Use when you need to modify template settings such as changing visibility (public/private status).

Parámetros de entrada

  • publicboolean

    Whether the template should be publicly accessible. If true, the template can be used by anyone; if false, it remains private to the team.

  • template_idstringObligatorio

    The unique identifier of the template to update.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Webhook ConfigurationE2B_UPDATE_WEBHOOKAcción

Tool to update an existing webhook configuration including URL, enabled status, and subscribed events. Use when you need to modify webhook settings, change the destination URL, enable/disable a webhook, or update event subscriptions.

Parámetros de entrada

  • urlstring

    The webhook endpoint URL to receive event notifications. If provided, replaces the previous URL.

  • eventsstring[]

    List of event types to subscribe to. Available events: 'sandbox.lifecycle.created' (sandbox creation), 'sandbox.lifecycle.killed' (sandbox termination), 'sandbox.lifecycle.updated' (sandbox configuration updates), 'sandbox.lifecycle.paused' (sandbox pausing), 'sandbox.lifecycle.resumed' (sandbox resuming).

  • enabledboolean

    Whether the webhook is active. If true, webhook will send notifications; if false, webhook is disabled.

  • webhook_idstringObligatorio

    The unique identifier of the webhook to update.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not