E2b
e2bOpen-source Code Interpreting for AI Apps. Run sandboxed code execution environments with support for multiple programming languages.
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ónTool 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_CONNECT_SANDBOXAcciónTool 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
timeoutintegerTimeout 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_idstringObligatorioThe unique identifier of the sandbox to connect to.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create TemplateE2B_CREATE_TEMPLATEAcciónTool 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_TEMPLATEAcciónTool 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
aliasstringObligatorioUnique identifier for the template. This is a human-readable name used to reference the template.
cpuCountintegerNumber of CPU cores to allocate to sandboxes using this template.
memoryMBintegerAmount of memory in megabytes to allocate to sandboxes using this template.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create WebhookE2B_CREATE_WEBHOOKAcciónTool 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_CREATE_WEBHOOKAcciónTool 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
urlstringObligatorioHTTPS endpoint where webhook events will be delivered. Must be a valid HTTPS URL.
namestringObligatorioHuman-readable identifier for the webhook.
eventsstring[]ObligatorioList of event types to subscribe to. Valid values: 'sandbox.lifecycle.created', 'sandbox.lifecycle.updated', 'sandbox.lifecycle.killed', 'sandbox.lifecycle.paused', 'sandbox.lifecycle.resumed'.
enabledbooleanObligatorioWhether the webhook actively receives events.
signatureSecretstringObligatorioSecret key used to verify webhook authenticity via HMAC signatures.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete SandboxE2B_DELETE_SANDBOXESAcciónTool 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_SANDBOXESAcciónTool 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_idstringObligatorioThe unique identifier of the sandbox to terminate.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete WebhookE2B_DELETE_WEBHOOKAcciónTool 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_DELETE_WEBHOOKAcciónTool 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_idstringObligatorioThe unique identifier of the webhook to delete.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check API HealthE2B_GET_HEALTHAcciónTool 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_HEALTHAcciónTool 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
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get SandboxE2B_GET_SANDBOXAcciónTool 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_SANDBOXAcciónTool 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_idstringObligatorioThe unique identifier of the sandbox to retrieve.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Sandbox LogsE2B_GET_SANDBOXES_LOGSAcciónTool 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_SANDBOXES_LOGSAcciónTool 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_idstringObligatorioThe unique identifier of the sandbox to retrieve logs for.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Sandbox Lifecycle EventsE2B_GET_SANDBOX_LIFECYCLE_EVENTSAcciónTool 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_LIFECYCLE_EVENTSAcciónTool 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
limitintegerNumber of events to return. Default is 10, minimum is 1, maximum is 100.
offsetintegerNumber of events to skip from the beginning. Default is 0.
orderAscbooleanSort direction—true for ascending chronological order, false for descending (default: false).
sandbox_idstringObligatorioThe unique identifier of the sandbox to retrieve events for.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Sandbox MetricsE2B_GET_SANDBOX_METRICSAcciónTool 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_SANDBOX_METRICSAcciónTool 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
endintegerEnd timestamp for metrics filtering (Unix timestamp in seconds).
startintegerStart timestamp for metrics filtering (Unix timestamp in seconds).
sandbox_idstringObligatorioThe unique identifier of the sandbox to retrieve metrics for.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Team MetricsE2B_GET_TEAMS_METRICSAcciónTool 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_METRICSAcciónTool 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
endintegerEnd timestamp for metrics filtering (Unix timestamp in seconds).
startintegerStart timestamp for metrics filtering (Unix timestamp in seconds).
team_idstringObligatorioThe unique identifier of the team to retrieve metrics for.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Team Maximum MetricsE2B_GET_TEAMS_METRICS_MAXAcciónTool 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.
E2B_GET_TEAMS_METRICS_MAXAcciónTool 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
endintegerEnd timestamp for metrics filtering as Unix timestamp (seconds since epoch). If provided, returns maximum in the specified interval.
startintegerStart timestamp for metrics filtering as Unix timestamp (seconds since epoch). If provided, returns maximum in the specified interval.
metricstringObligatorioThe 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_idstringObligatorioThe unique identifier of the team to retrieve maximum metrics for.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Template Build StatusE2B_GET_TEMPLATES_BUILD_STATUSAcciónTool 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.
E2B_GET_TEMPLATES_BUILD_STATUSAcciónTool 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
buildIDstringObligatorioThe unique identifier of the specific build.
logsOffsetintegerOffset for fetching logs from a specific point. Used to retrieve logs incrementally without re-fetching previous entries. Defaults to 0.
templateIDstringObligatorioThe unique identifier of the template.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Template FilesE2B_GET_TEMPLATES_FILESAcciónTool 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.
E2B_GET_TEMPLATES_FILESAcciónTool 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
hashstringObligatorioThe hash of the build layer files to retrieve.
templateIDstringObligatorioThe unique identifier of the template.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Webhook ConfigurationE2B_GET_WEBHOOKAcciónTool to retrieve the current webhook configuration for a specific webhook. Use when you need to inspect webhook settings, verify configuration, or check webhook status.
E2B_GET_WEBHOOKAcciónTool 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_idstringObligatorioThe unique identifier of the webhook to retrieve.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List All SandboxesE2B_LIST_SANDBOXESAcciónTool 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.
E2B_LIST_SANDBOXESAcciónTool 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
limitintegerNumber 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.
metadataobjectKey-value pairs to filter sandboxes by metadata set during creation. Multiple filters are combined with AND logic.
nextTokenstringBase64-encoded pagination token for fetching the next page of results.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Sandboxes MetricsE2B_LIST_SANDBOXES_METRICSAcciónTool 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.
E2B_LIST_SANDBOXES_METRICSAcciónTool 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
endstringEnd timestamp for metrics filtering (ISO 8601 format).
startstringStart timestamp for metrics filtering (ISO 8601 format).
sandbox_idsstring[]ObligatorioList of sandbox IDs to retrieve metrics for. Provide one or more sandbox identifiers.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Team Sandbox Lifecycle EventsE2B_LIST_TEAM_SANDBOX_LIFECYCLE_EVENTSAcciónTool 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.
E2B_LIST_TEAM_SANDBOX_LIFECYCLE_EVENTSAcciónTool 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
limitintegerNumber of events to return. Must be between 1 and 100. Default is 10.
offsetintegerNumber of events to skip for pagination. Must be non-negative. Default is 0.
orderAscbooleanSort order for events. True for ascending (oldest first), false for descending (newest first). Default is false.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List All TemplatesE2B_LIST_TEMPLATESAcciónTool to list all available E2B templates for your team. Use when you need to view available templates, retrieve template identifiers, or audit template configurations.
E2B_LIST_TEMPLATESAcciónTool 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
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List All WebhooksE2B_LIST_WEBHOOKSAcciónTool to retrieve all registered webhooks for your team. Use when you need to view all webhook configurations, audit webhook settings, or manage multiple webhooks.
E2B_LIST_WEBHOOKSAcciónTool 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
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Pause SandboxE2B_PAUSE_SANDBOXAcciónTool 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.
E2B_PAUSE_SANDBOXAcciónTool 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_idstringObligatorioThe unique identifier of the sandbox to pause.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create SandboxE2B_POST_SANDBOXESAcciónTool 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.
E2B_POST_SANDBOXESAcciónTool 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
envsobjectCustom environment variables for the sandbox as key-value pairs. These will be available inside the sandbox environment.
timeoutintegerTimeout 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.
metadataobjectCustom metadata key-value pairs for the sandbox. Use for tracking purpose, owner, or any other custom attributes.
autoPausebooleanEnable automatic pausing of the sandbox when inactive to save resources.
templateIDstringObligatorioThe ID of the template to use for creating the sandbox. This identifies which preconfigured environment to launch.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Sandbox TimeoutE2B_POST_SANDBOXES_TIMEOUTAcciónTool 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.
E2B_POST_SANDBOXES_TIMEOUTAcciónTool 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
timeoutintegerObligatorioTimeout 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_idstringObligatorioThe unique identifier of the sandbox to update the timeout for.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Refresh SandboxE2B_REFRESH_SANDBOXAcciónTool 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.
E2B_REFRESH_SANDBOXAcciónTool 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_idstringObligatorioThe unique identifier of the sandbox to refresh and extend its TTL.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Start Template BuildE2B_START_TEMPLATE_BUILDAcciónTool 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.
E2B_START_TEMPLATE_BUILDAcciónTool 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
forcebooleanWhether 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.
buildIDstringObligatorioIdentifier of the build to start.
readyCmdstringReady check command to execute in the template after the build to verify readiness.
startCmdstringCommand to execute in the template after the build completes.
fromImagestringBase image to use for the template build. Specify either fromImage or fromTemplate, not both.
templateIDstringObligatorioIdentifier of the template to build.
fromTemplatestringBase template to use for the template build. Specify either fromImage or fromTemplate, not both.
fromImageRegistryobjectRegistry authentication configuration for pulling base images.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update TemplateE2B_UPDATE_TEMPLATEAcciónTool to update an E2B template configuration. Use when you need to modify template settings such as changing visibility (public/private status).
E2B_UPDATE_TEMPLATEAcciónTool 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
publicbooleanWhether the template should be publicly accessible. If true, the template can be used by anyone; if false, it remains private to the team.
template_idstringObligatorioThe unique identifier of the template to update.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Webhook ConfigurationE2B_UPDATE_WEBHOOKAcciónTool 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.
E2B_UPDATE_WEBHOOKAcciónTool 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
urlstringThe 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).
enabledbooleanWhether the webhook is active. If true, webhook will send notifications; if false, webhook is disabled.
webhook_idstringObligatorioThe unique identifier of the webhook to update.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not