e2b
v1.0.5Create and manage secure sandboxes for running AI agent code
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_teams List Teams
Retrieve a list of all teams in the system. Use this operation to discover available teams for management or assignment purposes.
get_team_metrics Get Team Metrics
Retrieve performance and activity metrics for a specific team over an optional time interval. If no time range is specified, returns metrics for the current period.
| Parameter | Type | Description |
|---|---|---|
teamID * | string | The unique identifier of the team for which to retrieve metrics. |
end | string | Unix timestamp in seconds marking the end of the metrics interval. If omitted, defaults to the current time. |
start | string | Unix timestamp in seconds marking the start of the metrics interval. If omitted, defaults to the beginning of the current period. |
get_team_metrics_maximum Get Team Metrics Maximum
Retrieve the maximum value for a specified metric within a given time interval for a team. Useful for understanding peak performance or resource utilization.
| Parameter | Type | Description |
|---|---|---|
metric * | string | The specific metric to retrieve the maximum value for during the interval. |
teamID * | string | The unique identifier of the team for which to retrieve metrics. |
end | string | Unix timestamp in seconds marking the end of the interval. If omitted, metrics up to the current time are included. |
start | string | Unix timestamp in seconds marking the start of the interval. If omitted, metrics from the earliest available data are included. |
create_sandbox Create Sandbox
Create a new sandbox instance from a specified template. The sandbox can be configured with network policies, environment variables, and storage mounts.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | Enable automatic resumption of the sandbox when it enters a paused state. |
templateID * | string | The unique identifier of the template to use for creating the sandbox. |
allowOut | array | List of CIDR blocks or IP addresses permitted for outbound traffic. Allowed addresses take precedence over denied addresses when both are specified. |
allowPublicTraffic | boolean | Control whether sandbox URLs are publicly accessible or require authentication to access. |
denyOut | array | List of CIDR blocks or IP addresses blocked from outbound traffic. |
envVars | Environment variables to inject into the sandbox runtime environment. | |
mcp | object | Model Context Protocol (MCP) configuration settings for the sandbox. |
metadata | Custom metadata to attach to the sandbox for tracking and organization purposes. | |
volumeMounts | array | Volume mounts to attach to the sandbox, enabling access to external storage or data sources. |
list_sandboxes List Sandboxes
Retrieve a list of all sandboxes with optional filtering by metadata and state. Results are paginated with a configurable limit.
| Parameter | Type | Description |
|---|---|---|
limit | string | Maximum number of sandboxes to return per page. Must be between 1 and 100. |
metadata | string | Filter sandboxes by metadata key-value pairs. Use URL encoding for both keys and values (e.g., user=abc&app=prod). |
state | array | Filter sandboxes by one or more states. Provide as an array of state values. |
list_sandbox_metrics List Sandbox Metrics
Retrieve performance and usage metrics for specified sandboxes. Supports querying multiple sandboxes in a single request.
| Parameter | Type | Description |
|---|---|---|
sandbox_ids * | array | One or more sandbox IDs to retrieve metrics for. Provide as a comma-separated list of sandbox identifiers. |
list_sandbox_logs List Sandbox Logs
Retrieve logs from a specific sandbox with optional filtering by time range and result limit. Logs can be returned in forward or backward chronological order.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox for which to retrieve logs. |
cursor | string | Starting timestamp in milliseconds from which logs should be returned. Use this to paginate through results or retrieve logs after a specific point in time. |
direction | string | Order in which logs should be returned relative to the cursor timestamp. |
limit | string | Maximum number of log entries to return in a single response. |
get_sandbox Get Sandbox
Retrieve a specific sandbox by its unique identifier. Use this operation to fetch detailed information about a sandbox environment.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox to retrieve. |
terminate_sandbox Terminate Sandbox
Terminate and remove a sandbox environment by its ID. This operation permanently deletes the sandbox and all associated resources.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox to terminate. |
get_sandbox_metrics Get Sandbox Metrics
Retrieve performance and resource metrics for a specific sandbox over an optional time interval. Metrics are aggregated between the specified start and end timestamps.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox for which to retrieve metrics. |
end | string | Unix timestamp in seconds marking the end of the metrics collection interval. If omitted, metrics are retrieved up to the current time. |
start | string | Unix timestamp in seconds marking the beginning of the metrics collection interval. If omitted, metrics are retrieved from the earliest available data. |
pause_sandbox Pause Sandbox
Pause an active sandbox to temporarily suspend its execution and resource consumption. The sandbox can be resumed later without losing its state.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox to pause. |
connect_sandbox Connect Sandbox
Establish a connection to a sandbox and extend its time-to-live. If the sandbox is paused, it will be automatically resumed.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox to connect to. |
timeout * | string | The number of seconds from the current time until the sandbox should automatically expire. Must be a non-negative value. |
set_sandbox_timeout Set Sandbox Timeout
Set the expiration time for a sandbox by specifying a timeout duration in seconds from the current request time. Calling this operation multiple times resets the sandbox's time-to-live (TTL), with each call using the current timestamp as the new starting point.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox to configure. |
timeout * | string | The number of seconds from the current time until the sandbox should automatically expire. Must be a non-negative integer. |
refresh_sandbox Refresh Sandbox
Extend the time to live of an active sandbox by refreshing it. Optionally specify a custom duration to keep the sandbox alive.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox to refresh. |
duration | integer | The duration in seconds to extend the sandbox's time to live. If not specified, a default duration will be applied. |
create_sandbox_snapshot Create Sandbox Snapshot
Create a persistent snapshot of the sandbox's current state that can be used to create new sandboxes and persists beyond the original sandbox's lifetime.
| Parameter | Type | Description |
|---|---|---|
sandboxID * | string | The unique identifier of the sandbox from which to create the snapshot. |
name | string | Optional name for the snapshot. If a snapshot with this name already exists, a new build will be assigned to the existing snapshot instead of creating a new one. |
list_snapshots List Snapshots
Retrieve all snapshots for your team, with optional filtering by source sandbox and pagination support.
| Parameter | Type | Description |
|---|---|---|
limit | string | Number of snapshots to return per page. Useful for paginating through large result sets. |
sandboxID | string | Filter results to snapshots created from a specific sandbox ID. |
create_template Create Template
Create a new template with optional resource specifications and organizational tags. Templates define sandbox configurations for reproducible environments.
| Parameter | Type | Description |
|---|---|---|
cpuCount | string | Number of CPU cores to allocate to the sandbox. Must be at least 1 core. |
memoryMB | string | Memory to allocate to the sandbox in mebibytes (MiB). Must be at least 128 MiB. |
name | string | Name of the template. Optionally include a version tag using colon separator (e.g., 'my-template:v1'). If a tag is provided in the name, it will be added to the tags array automatically. |
tags | array | Tags to assign to the template for organization and categorization. Tags help identify and group related templates. |
get_template_files_upload_link Get Template File Upload Link
Retrieve a download link for a tar archive containing the build layer files associated with a specific template. The link is generated based on the template ID and file hash.
| Parameter | Type | Description |
|---|---|---|
hash * | string | The cryptographic hash that identifies the specific version or snapshot of the template files to retrieve. |
templateID * | string | The unique identifier of the template for which to retrieve the files upload link. |
list_templates List Templates
Retrieve all templates available in the system, optionally filtered by a specific team. Use this to discover and display template options for users.
| Parameter | Type | Description |
|---|---|---|
teamID | string | Filter templates to a specific team. If omitted, returns templates accessible to all teams or the default scope. |
list_template_builds List Template Builds
Retrieve all builds associated with a specific template. Use pagination to control the number of results returned per page.
| Parameter | Type | Description |
|---|---|---|
templateID * | string | The unique identifier of the template for which to retrieve builds. |
limit | string | The maximum number of builds to return in a single page of results. Defaults to 100 if not specified. |
delete_template Delete Template
Permanently delete a template by its ID. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
templateID * | string | The unique identifier of the template to delete. |
start_template_build Start Template Build
Initiate a build process for a specific template. This operation executes the build with optional customization including base template selection, build steps, and post-build commands.
| Parameter | Type | Description |
|---|---|---|
buildID * | string | The unique identifier for this specific build execution. |
templateID * | string | The unique identifier of the template to build. |
force | boolean | Whether to bypass cache and force the entire build to execute from scratch. |
fromImageRegistry | Optional image registry configuration for sourcing or pushing build artifacts. | |
fromTemplate | string | Optional template ID to use as a base for this template build, allowing inheritance of template configuration. |
readyCmd | string | Command to execute after the build to verify the template is ready and operational, used for health checks or readiness validation. |
startCmd | string | Command to execute within the template after the build completes, typically used to start services or initialize the environment. |
steps | array | Ordered list of build steps to execute. Each step represents a discrete build operation performed sequentially. |
update_template Update Template
Update an existing template's properties, such as its visibility settings. Modify template accessibility to be public or restricted to team members only.
| Parameter | Type | Description |
|---|---|---|
templateID * | string | The unique identifier of the template to update. |
public | boolean | Controls template visibility. When true, the template is accessible to anyone; when false, it is restricted to team members only. |
get_template_build_status Get Template Build Status
Retrieve the current status and build logs for a specific template build. Returns build information with optional log filtering by offset, limit, and severity level.
| Parameter | Type | Description |
|---|---|---|
buildID * | string | The unique identifier of the build whose status should be retrieved. |
templateID * | string | The unique identifier of the template containing the build. |
level | string | Filter logs by severity level. Returns only logs matching the specified level or higher priority. |
limit | string | The maximum number of build logs to return in the response. Useful for controlling response size and pagination. |
logsOffset | string | The starting index for build logs to return. Use this to paginate through large log sets. |
list_template_build_logs List Template Build Logs
Retrieve logs from a template build execution. Supports filtering by log level and source, with pagination and directional traversal of log entries.
| Parameter | Type | Description |
|---|---|---|
buildID * | string | The unique identifier of the build whose logs should be retrieved. |
templateID * | string | The unique identifier of the template containing the build. |
cursor | string | Starting point for log retrieval specified as a Unix timestamp in milliseconds. Logs returned will be from this timestamp onward (or backward, depending on direction). |
direction | string | Order in which log entries should be returned relative to the cursor timestamp. |
level | string | Filter logs by severity level. Only entries matching the specified level will be returned. |
limit | string | Maximum number of log entries to return in a single response. |
source | string | Filter logs by their storage source. Temporary logs are transient, while persistent logs are retained long-term. |
assign_template_tags Assign Template Tags
Assign one or more tags to a specific template build. Tags help organize and categorize templates for easier discovery and management.
| Parameter | Type | Description |
|---|---|---|
tags * | array | Array of tags to assign to the template. Tags are applied in the order provided and can be used for categorization and filtering. |
target * | string | The target template specified in 'name:tag' format, where name is the template identifier and tag is the specific build version. |
remove_template_tags Remove Template Tags
Remove one or more tags from a specific template. This operation allows bulk deletion of tags associated with a template.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the template from which tags will be removed. |
tags * | array | An array of tag names to remove from the template. Order is not significant. |
list_template_tags List Template Tags
Retrieve all tags associated with a specific template. Tags are used to categorize and organize templates for easier discovery and management.
| Parameter | Type | Description |
|---|---|---|
templateID * | string | The unique identifier of the template for which to retrieve tags. |
check_template_alias Check Template Alias
Verify whether a template with the specified alias exists in the system.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The unique identifier or name of the template to check for existence. |
list_nodes List Nodes
Retrieve a list of all available nodes in the system. Use this operation to discover and monitor all nodes.
get_node Get Node
Retrieve detailed information about a specific node, optionally filtered by cluster membership.
| Parameter | Type | Description |
|---|---|---|
nodeID * | string | The unique identifier of the node to retrieve. |
clusterID | string | The cluster to which the node belongs. Use this to scope the node lookup to a specific cluster. |
update_node_status Update Node Status
Update the operational status of a node within a cluster. This operation allows you to transition a node between different states such as ready, draining, connecting, or unhealthy.
| Parameter | Type | Description |
|---|---|---|
nodeID * | string | The unique identifier of the node to update. |
status * | string | The desired operational status for the node. Determines how the node handles workloads and cluster participation. |
clusterID | string | The unique identifier of the cluster containing the node. Required to scope the node operation within the correct cluster context. |
terminate_team_sandboxes Terminate Team Sandboxes
Terminates all active sandboxes for a specified team. This operation will immediately stop and remove all sandbox instances associated with the team.
| Parameter | Type | Description |
|---|---|---|
teamID * | string | The unique identifier of the team whose sandboxes should be terminated. |
create_access_token Create Access Token
Create a new access token for API authentication. The token can be used to authorize requests to protected endpoints.
| Parameter | Type | Description |
|---|---|---|
name * | string | A descriptive name for the access token to help identify its purpose or associated application. |
revoke_access_token Revoke Access Token
Revoke and delete an access token, immediately invalidating it for future API requests.
| Parameter | Type | Description |
|---|---|---|
accessTokenID * | string | The unique identifier of the access token to revoke and delete. |
list_api_keys List API Keys
Retrieve all API keys associated with your team. Use this to view and manage authentication credentials for API access.
create_api_key Create API Key
Create a new API key for your team to authenticate API requests. The key can be used to access team resources and data.
| Parameter | Type | Description |
|---|---|---|
name * | string | A descriptive name for the API key to help identify its purpose or associated application. |
update_api_key Update API Key
Update the name of a team API key. Allows you to rename an existing API key for better organization and identification.
| Parameter | Type | Description |
|---|---|---|
apiKeyID * | string | The unique identifier of the API key to update. |
name * | string | The new name for the API key. Use a descriptive name to identify the key's purpose or associated application. |
delete_api_key Delete API Key
Permanently delete a team API key. This action cannot be undone and will invalidate any requests using this key.
| Parameter | Type | Description |
|---|---|---|
apiKeyID * | string | The unique identifier of the API key to delete. |
list_volumes List Volumes
Retrieve all volumes available to the team. This operation returns a complete list of storage volumes with their metadata and configuration details.
create_volume Create Volume
Create a new team volume for storing and organizing data. The volume name must be unique within the team and follow alphanumeric naming conventions.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name identifier for the volume. Must contain only letters, numbers, hyphens, and underscores. |
get_volume Get Volume
Retrieve detailed information about a specific team volume by its unique identifier.
| Parameter | Type | Description |
|---|---|---|
volumeID * | string | The unique identifier of the volume to retrieve. |
delete_volume Delete Volume
Permanently delete a team volume by its ID. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
volumeID * | string | The unique identifier of the volume to delete. |