E2B · Capability

E2B Sandbox API — Metrics and Logs

E2B Sandbox API — Metrics and Logs. Stream metrics and logs for one sandbox or aggregate metrics for the running fleet.

E2B Sandbox API — Metrics and Logs is a Naftiko capability published by E2B, one of 13 capabilities the APIs.io network indexes for this provider. It bundles 3 operations.

The capability includes 3 read-only operations. Lead operation: E2B Get Metrics For A Sandbox. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include E2B, Sandboxes, Metrics, Logs, and Observability.

Run with Naftiko E2BSandboxesMetricsLogsObservability

MCP Tools

e2b-get-sandbox-metrics

E2B Get Metrics For A Sandbox

read-only idempotent
e2b-get-sandbox-logs

E2B Get Logs For A Sandbox

read-only idempotent
e2b-get-fleet-metrics

E2B Get Metrics For All Running Sandboxes

read-only idempotent

Capability Spec

sandboxes-metrics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: E2B Sandbox API — Metrics and Logs
  description: 'E2B Sandbox API — Metrics and Logs. Stream metrics and logs for one sandbox or aggregate metrics
    for the running fleet.'
  tags:
  - E2B
  - Sandboxes
  - Metrics
  - Logs
  - Observability
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    E2B_API_KEY: E2B_API_KEY
capability:
  consumes:
  - type: http
    namespace: sandboxes-metrics
    baseUri: https://api.e2b.app
    description: E2B Sandbox API — metrics and log observability.
    resources:
    - name: sandbox-metrics
      path: /sandboxes/{sandboxID}/metrics
      operations:
      - name: getsandboxmetrics
        method: GET
        description: E2B Get Metrics For A Sandbox
        inputParameters:
        - name: sandboxID
          in: path
          type: string
          required: true
    - name: sandbox-logs
      path: /sandboxes/{sandboxID}/logs
      operations:
      - name: getsandboxlogs
        method: GET
        description: E2B Get Logs For A Sandbox
        inputParameters:
        - name: sandboxID
          in: path
          type: string
          required: true
    - name: fleet-metrics
      path: /sandboxes/metrics
      operations:
      - name: getfleetmetrics
        method: GET
        description: E2B Get Metrics For All Running Sandboxes
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.E2B_API_KEY}}'
      placement: header
  exposes:
  - type: mcp
    namespace: sandboxes-metrics-mcp
    port: 9090
    transport: http
    description: MCP tools for inspecting sandbox metrics and logs.
    tools:
    - name: e2b-get-sandbox-metrics
      description: E2B Get Metrics For A Sandbox
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sandboxes-metrics.getsandboxmetrics
      with:
        sandboxID: tools.sandboxID
    - name: e2b-get-sandbox-logs
      description: E2B Get Logs For A Sandbox
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sandboxes-metrics.getsandboxlogs
      with:
        sandboxID: tools.sandboxID
    - name: e2b-get-fleet-metrics
      description: E2B Get Metrics For All Running Sandboxes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sandboxes-metrics.getfleetmetrics