Snyk · Capability

Snyk API — ContainerImage

Snyk API — ContainerImage. 3 operations. Lead operation: List instances of container image. Self-contained Naftiko capability covering one Snyk business surface.

Run with Naftiko SnykContainerImage

What You Can Do

GET
Listcontainerimage — List instances of container image
/v1/orgs/{org-id}/container-images
GET
Getcontainerimage — Get instance of container image
/v1/orgs/{org-id}/container-images/{image-id}
GET
Listimagetargetrefs — List instances of image target references for a container image
/v1/orgs/{org-id}/container-images/{image-id}/relationships/image-target-refs

MCP Tools

list-instances-container-image

List instances of container image

read-only idempotent
get-instance-container-image

Get instance of container image

read-only idempotent
list-instances-image-target-references

List instances of image target references for a container image

read-only idempotent

Capability Spec

rest-containerimage.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Snyk API — ContainerImage
  description: 'Snyk API — ContainerImage. 3 operations. Lead operation: List instances of container image. Self-contained
    Naftiko capability covering one Snyk business surface.'
  tags:
  - Snyk
  - ContainerImage
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SNYK_API_KEY: SNYK_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-containerimage
    baseUri: https://api.snyk.io/rest
    description: Snyk API — ContainerImage business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org_id-container_images
      path: /orgs/{org_id}/container_images
      operations:
      - name: listcontainerimage
        method: GET
        description: List instances of container image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Org ID
          required: true
        - name: platform
          in: query
          type: string
          description: The image Operating System and processor architecture
    - name: orgs-org_id-container_images-image_id
      path: /orgs/{org_id}/container_images/{image_id}
      operations:
      - name: getcontainerimage
        method: GET
        description: Get instance of container image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Org ID
          required: true
    - name: orgs-org_id-container_images-image_id-relationships-image_target_refs
      path: /orgs/{org_id}/container_images/{image_id}/relationships/image_target_refs
      operations:
      - name: listimagetargetrefs
        method: GET
        description: List instances of image target references for a container image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Org ID
          required: true
    authentication:
      type: bearer
      token: '{{env.SNYK_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-containerimage-rest
    port: 8080
    description: REST adapter for Snyk API — ContainerImage. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org-id}/container-images
      name: orgs-org-id-container-images
      description: REST surface for orgs-org_id-container_images.
      operations:
      - method: GET
        name: listcontainerimage
        description: List instances of container image
        call: rest-containerimage.listcontainerimage
        with:
          org_id: rest.org_id
          platform: rest.platform
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org-id}/container-images/{image-id}
      name: orgs-org-id-container-images-image-id
      description: REST surface for orgs-org_id-container_images-image_id.
      operations:
      - method: GET
        name: getcontainerimage
        description: Get instance of container image
        call: rest-containerimage.getcontainerimage
        with:
          org_id: rest.org_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org-id}/container-images/{image-id}/relationships/image-target-refs
      name: orgs-org-id-container-images-image-id-relationships-image-target-refs
      description: REST surface for orgs-org_id-container_images-image_id-relationships-image_target_refs.
      operations:
      - method: GET
        name: listimagetargetrefs
        description: List instances of image target references for a container image
        call: rest-containerimage.listimagetargetrefs
        with:
          org_id: rest.org_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-containerimage-mcp
    port: 9090
    transport: http
    description: MCP adapter for Snyk API — ContainerImage. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-instances-container-image
      description: List instances of container image
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-containerimage.listcontainerimage
      with:
        org_id: tools.org_id
        platform: tools.platform
      outputParameters:
      - type: object
        mapping: $.
    - name: get-instance-container-image
      description: Get instance of container image
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-containerimage.getcontainerimage
      with:
        org_id: tools.org_id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-instances-image-target-references
      description: List instances of image target references for a container image
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-containerimage.listimagetargetrefs
      with:
        org_id: tools.org_id
      outputParameters:
      - type: object
        mapping: $.