Agent Diff · Capability

Agent Diff Sandbox API — Sandboxes

Agent Diff Sandbox API — Sandboxes. 4 operations. Lead operation: Agent Diff Create Sandbox. Self-contained Naftiko capability covering one Agent Diff business surface.

Run with Naftiko Agent DiffSandboxes

What You Can Do

POST
Createsandbox — Agent Diff Create Sandbox
/v1/sandboxes
GET
Listsandboxes — Agent Diff List Sandboxes
/v1/sandboxes
GET
Getsandbox — Agent Diff Get Sandbox
/v1/sandboxes/{sandboxid}
DELETE
Deletesandbox — Agent Diff Delete Sandbox
/v1/sandboxes/{sandboxid}

MCP Tools

agent-diff-create-sandbox

Agent Diff Create Sandbox

agent-diff-list-sandboxes

Agent Diff List Sandboxes

read-only idempotent
agent-diff-get-sandbox

Agent Diff Get Sandbox

read-only idempotent
agent-diff-delete-sandbox

Agent Diff Delete Sandbox

idempotent

Capability Spec

sandbox-sandboxes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Agent Diff Sandbox API — Sandboxes
  description: 'Agent Diff Sandbox API — Sandboxes. 4 operations. Lead operation: Agent Diff Create Sandbox. Self-contained
    Naftiko capability covering one Agent Diff business surface.'
  tags:
  - Agent Diff
  - Sandboxes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AGENT_DIFF_API_KEY: AGENT_DIFF_API_KEY
capability:
  consumes:
  - type: http
    namespace: sandbox-sandboxes
    baseUri: https://api.agentdiff.dev/v1
    description: Agent Diff Sandbox API — Sandboxes business capability. Self-contained, no shared references.
    resources:
    - name: sandboxes
      path: /sandboxes
      operations:
      - name: createsandbox
        method: POST
        description: Agent Diff Create Sandbox
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listsandboxes
        method: GET
        description: Agent Diff List Sandboxes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
          description: Filter by sandbox status.
        - name: api
          in: query
          type: string
          description: Filter by sandboxed API (e.g., slack, linear).
        - name: limit
          in: query
          type: integer
          description: Maximum number of results.
        - name: offset
          in: query
          type: integer
          description: Pagination offset.
    - name: sandboxes-sandboxId
      path: /sandboxes/{sandboxId}
      operations:
      - name: getsandbox
        method: GET
        description: Agent Diff Get Sandbox
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sandboxId
          in: path
          type: string
          description: Sandbox identifier.
          required: true
      - name: deletesandbox
        method: DELETE
        description: Agent Diff Delete Sandbox
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sandboxId
          in: path
          type: string
          description: Sandbox identifier.
          required: true
    authentication:
      type: bearer
      token: '{{env.AGENT_DIFF_API_KEY}}'
  exposes:
  - type: rest
    namespace: sandbox-sandboxes-rest
    port: 8080
    description: REST adapter for Agent Diff Sandbox API — Sandboxes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/sandboxes
      name: sandboxes
      description: REST surface for sandboxes.
      operations:
      - method: POST
        name: createsandbox
        description: Agent Diff Create Sandbox
        call: sandbox-sandboxes.createsandbox
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listsandboxes
        description: Agent Diff List Sandboxes
        call: sandbox-sandboxes.listsandboxes
        with:
          status: rest.status
          api: rest.api
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sandboxes/{sandboxid}
      name: sandboxes-sandboxid
      description: REST surface for sandboxes-sandboxId.
      operations:
      - method: GET
        name: getsandbox
        description: Agent Diff Get Sandbox
        call: sandbox-sandboxes.getsandbox
        with:
          sandboxId: rest.sandboxId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesandbox
        description: Agent Diff Delete Sandbox
        call: sandbox-sandboxes.deletesandbox
        with:
          sandboxId: rest.sandboxId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: sandbox-sandboxes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Agent Diff Sandbox API — Sandboxes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: agent-diff-create-sandbox
      description: Agent Diff Create Sandbox
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: sandbox-sandboxes.createsandbox
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: agent-diff-list-sandboxes
      description: Agent Diff List Sandboxes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sandbox-sandboxes.listsandboxes
      with:
        status: tools.status
        api: tools.api
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: agent-diff-get-sandbox
      description: Agent Diff Get Sandbox
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sandbox-sandboxes.getsandbox
      with:
        sandboxId: tools.sandboxId
      outputParameters:
      - type: object
        mapping: $.
    - name: agent-diff-delete-sandbox
      description: Agent Diff Delete Sandbox
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: sandbox-sandboxes.deletesandbox
      with:
        sandboxId: tools.sandboxId
      outputParameters:
      - type: object
        mapping: $.