Salesforce · Capability

Salesforce — Photo

Salesforce — Photo. 2 operations. Lead operation: Salesforce User Photo. Self-contained Naftiko capability covering one Salesforce business surface.

Run with Naftiko SalesforcePhoto

What You Can Do

POST
Userphoto — Salesforce User Photo
/v1/data/v64-0/connect/user-profiles/me/photo
GET
Getphotoactions — Salesforce Get Photo Actions
/v1/data/v64-0/ui-api/actions/photo/{record-ids}

MCP Tools

salesforce-user-photo

Salesforce User Photo

salesforce-get-photo-actions

Salesforce Get Photo Actions

read-only idempotent

Capability Spec

salesforce-photo.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce — Photo
  description: 'Salesforce — Photo. 2 operations. Lead operation: Salesforce User Photo. Self-contained Naftiko capability
    covering one Salesforce business surface.'
  tags:
  - Salesforce
  - Photo
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_API_KEY: SALESFORCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: salesforce-photo
    baseUri: https://login.salesforce.com
    description: Salesforce — Photo business capability. Self-contained, no shared references.
    resources:
    - name: data-v64.0-connect-user-profiles-me-photo
      path: /data/v64.0/connect/user-profiles/me/photo
      operations:
      - name: userphoto
        method: POST
        description: Salesforce User Photo
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: data-v64.0-ui-api-actions-photo-RECORD_IDS
      path: /data/v64.0/ui-api/actions/photo/{RECORD_IDS}
      operations:
      - name: getphotoactions
        method: GET
        description: Salesforce Get Photo Actions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: RECORD_IDS
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: salesforce-photo-rest
    port: 8080
    description: REST adapter for Salesforce — Photo. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/data/v64-0/connect/user-profiles/me/photo
      name: data-v64-0-connect-user-profiles-me-photo
      description: REST surface for data-v64.0-connect-user-profiles-me-photo.
      operations:
      - method: POST
        name: userphoto
        description: Salesforce User Photo
        call: salesforce-photo.userphoto
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/ui-api/actions/photo/{record-ids}
      name: data-v64-0-ui-api-actions-photo-record-ids
      description: REST surface for data-v64.0-ui-api-actions-photo-RECORD_IDS.
      operations:
      - method: GET
        name: getphotoactions
        description: Salesforce Get Photo Actions
        call: salesforce-photo.getphotoactions
        with:
          RECORD_IDS: rest.RECORD_IDS
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: salesforce-photo-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce — Photo. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: salesforce-user-photo
      description: Salesforce User Photo
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: salesforce-photo.userphoto
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-get-photo-actions
      description: Salesforce Get Photo Actions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-photo.getphotoactions
      with:
        RECORD_IDS: tools.RECORD_IDS
      outputParameters:
      - type: object
        mapping: $.