Salesforce Einstein · Capability

Salesforce Einstein Vision API — Predictions

Salesforce Einstein Vision API — Predictions. 2 operations. Lead operation: Salesforce Einstein Detect objects in an image. Self-contained Naftiko capability covering one Salesforce Einstein business surface.

Run with Naftiko Salesforce EinsteinPredictions

What You Can Do

POST
Detectobjects — Salesforce Einstein Detect objects in an image
/v1/detect
POST
Predictimage — Salesforce Einstein Make a prediction
/v1/predict

MCP Tools

salesforce-einstein-detect-objects-image

Salesforce Einstein Detect objects in an image

salesforce-einstein-make-prediction

Salesforce Einstein Make a prediction

Capability Spec

vision-predictions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce Einstein Vision API — Predictions
  description: 'Salesforce Einstein Vision API — Predictions. 2 operations. Lead operation: Salesforce Einstein Detect objects
    in an image. Self-contained Naftiko capability covering one Salesforce Einstein business surface.'
  tags:
  - Salesforce Einstein
  - Predictions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_EINSTEIN_API_KEY: SALESFORCE_EINSTEIN_API_KEY
capability:
  consumes:
  - type: http
    namespace: vision-predictions
    baseUri: https://api.einstein.ai/v2/vision
    description: Salesforce Einstein Vision API — Predictions business capability. Self-contained, no shared references.
    resources:
    - name: detect
      path: /detect
      operations:
      - name: detectobjects
        method: POST
        description: Salesforce Einstein Detect objects in an image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: predict
      path: /predict
      operations:
      - name: predictimage
        method: POST
        description: Salesforce Einstein Make a prediction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_EINSTEIN_API_KEY}}'
  exposes:
  - type: rest
    namespace: vision-predictions-rest
    port: 8080
    description: REST adapter for Salesforce Einstein Vision API — Predictions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/detect
      name: detect
      description: REST surface for detect.
      operations:
      - method: POST
        name: detectobjects
        description: Salesforce Einstein Detect objects in an image
        call: vision-predictions.detectobjects
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/predict
      name: predict
      description: REST surface for predict.
      operations:
      - method: POST
        name: predictimage
        description: Salesforce Einstein Make a prediction
        call: vision-predictions.predictimage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vision-predictions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce Einstein Vision API — Predictions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: salesforce-einstein-detect-objects-image
      description: Salesforce Einstein Detect objects in an image
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vision-predictions.detectobjects
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-einstein-make-prediction
      description: Salesforce Einstein Make a prediction
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vision-predictions.predictimage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.