naftiko: 1.0.0-alpha2 info: label: Prime Intellect Platform API — Images description: Prime Intellect Platform API — Images. 6 operations. Self-contained Naftiko capability covering one Prime Intellect business surface. tags: - Prime Intellect - Platform created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: PRIME_API_KEY: PRIME_API_KEY capability: consumes: - type: http namespace: platform-images baseUri: https://api.primeintellect.ai description: Prime Intellect Platform API — Images business capability. Self-contained, no shared references. resources: - name: images path: /api/v1/images operations: - name: listimages method: GET description: List user images. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: images-image_name-image_tag path: /api/v1/images/{image_name}/{image_tag} operations: - name: deleteimage method: DELETE description: Delete a user image. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: image_name in: path type: string required: true - name: image_tag in: path type: string required: true - name: images-build path: /api/v1/images/build operations: - name: initiatebuild method: POST description: Initiate a Docker image build. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: images-build-build_id-start path: /api/v1/images/build/{build_id}/start operations: - name: startbuild method: POST description: Start a queued build. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: build_id in: path type: string required: true - name: images-builds path: /api/v1/images/builds operations: - name: listbuilds method: GET description: List image builds. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: images-image_name-image_tag-visibility path: /api/v1/images/{image_name}/{image_tag}/visibility operations: - name: setvisibility method: PUT description: Set image visibility (public/private). outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: image_name in: path type: string required: true - name: image_tag in: path type: string required: true authentication: type: bearer value: '{{env.PRIME_API_KEY}}' placement: header exposes: - type: rest namespace: platform-images-rest port: 8080 description: REST adapter for Prime Intellect Platform API — Images. resources: - path: /v1/api/v1/images name: images description: REST surface for images. operations: - method: GET name: listimages description: List user images. call: platform-images.listimages with: {} outputParameters: - type: object mapping: $. - path: /v1/api/v1/images/{image_name}/{image_tag} name: images-image_name-image_tag description: REST surface for images-image_name-image_tag. operations: - method: DELETE name: deleteimage description: Delete a user image. call: platform-images.deleteimage with: image_name: rest.path.image_name image_tag: rest.path.image_tag outputParameters: - type: object mapping: $. - path: /v1/api/v1/images/build name: images-build description: REST surface for images-build. operations: - method: POST name: initiatebuild description: Initiate a Docker image build. call: platform-images.initiatebuild with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/images/build/{build_id}/start name: images-build-build_id-start description: REST surface for images-build-build_id-start. operations: - method: POST name: startbuild description: Start a queued build. call: platform-images.startbuild with: body: rest.body build_id: rest.path.build_id outputParameters: - type: object mapping: $. - path: /v1/api/v1/images/builds name: images-builds description: REST surface for images-builds. operations: - method: GET name: listbuilds description: List image builds. call: platform-images.listbuilds with: {} outputParameters: - type: object mapping: $. - path: /v1/api/v1/images/{image_name}/{image_tag}/visibility name: images-image_name-image_tag-visibility description: REST surface for images-image_name-image_tag-visibility. operations: - method: PUT name: setvisibility description: Set image visibility (public/private). call: platform-images.setvisibility with: body: rest.body image_name: rest.path.image_name image_tag: rest.path.image_tag outputParameters: - type: object mapping: $. - type: mcp namespace: platform-images-mcp port: 9090 transport: http description: MCP adapter for Prime Intellect Platform API — Images. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: prime-intellect-listimages description: List user images. hints: readOnly: true destructive: false idempotent: true call: platform-images.listimages with: {} outputParameters: - type: object mapping: $. - name: prime-intellect-deleteimage description: Delete a user image. hints: readOnly: false destructive: true idempotent: true call: platform-images.deleteimage with: image_name: tools.image_name image_tag: tools.image_tag outputParameters: - type: object mapping: $. - name: prime-intellect-initiatebuild description: Initiate a Docker image build. hints: readOnly: false destructive: false idempotent: false call: platform-images.initiatebuild with: body: tools.body outputParameters: - type: object mapping: $. - name: prime-intellect-startbuild description: Start a queued build. hints: readOnly: false destructive: false idempotent: false call: platform-images.startbuild with: body: tools.body build_id: tools.build_id outputParameters: - type: object mapping: $. - name: prime-intellect-listbuilds description: List image builds. hints: readOnly: true destructive: false idempotent: true call: platform-images.listbuilds with: {} outputParameters: - type: object mapping: $. - name: prime-intellect-setvisibility description: Set image visibility (public/private). hints: readOnly: false destructive: false idempotent: true call: platform-images.setvisibility with: body: tools.body image_name: tools.image_name image_tag: tools.image_tag outputParameters: - type: object mapping: $.