Salesforce · Capability

Salesforce — Lightning

Salesforce — Lightning. 6 operations. Lead operation: Salesforce Lightning Exit by Page Metrics. Self-contained Naftiko capability covering one Salesforce business surface.

Run with Naftiko SalesforceLightning

What You Can Do

GET
Lightningexitbypagemetrics — Salesforce Lightning Exit by Page Metrics
/v1/data/v64-0/sobjects/lightningexitbypagemetrics
GET
Lightningtogglemetrics — Salesforce Lightning Toggle Metrics
/v1/data/v64-0/sobjects/lightningtogglemetrics
GET
Lightningusagebyapptype — Salesforce Lightning Usage by App Type
/v1/data/v64-0/sobjects/lightningusagebyapptypemetrics
GET
Lightningusagebypage — Salesforce Lightning Usage by Page
/v1/data/v64-0/sobjects/lightningusagebybrowsermetrics
GET
Lightningusagebyflexipage — Salesforce Lightning Usage by Flexipage
/v1/data/v64-0/sobjects/lightningusagebyflexipagemetrics
GET
Getlightningpageactions — Salesforce Get Lightning Page Actions
/v1/data/v64-0/ui-api/actions/flexipage/{flexipage-names}

MCP Tools

salesforce-lightning-exit-page-metrics

Salesforce Lightning Exit by Page Metrics

read-only idempotent
salesforce-lightning-toggle-metrics

Salesforce Lightning Toggle Metrics

read-only idempotent
salesforce-lightning-usage-app-type

Salesforce Lightning Usage by App Type

read-only idempotent
salesforce-lightning-usage-page

Salesforce Lightning Usage by Page

read-only idempotent
salesforce-lightning-usage-flexipage

Salesforce Lightning Usage by Flexipage

read-only idempotent
salesforce-get-lightning-page-actions

Salesforce Get Lightning Page Actions

read-only idempotent

Capability Spec

salesforce-lightning.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce — Lightning
  description: 'Salesforce — Lightning. 6 operations. Lead operation: Salesforce Lightning Exit by Page Metrics. Self-contained
    Naftiko capability covering one Salesforce business surface.'
  tags:
  - Salesforce
  - Lightning
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_API_KEY: SALESFORCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: salesforce-lightning
    baseUri: https://login.salesforce.com
    description: Salesforce — Lightning business capability. Self-contained, no shared references.
    resources:
    - name: data-v64.0-sobjects-LightningExitByPageMetrics
      path: /data/v64.0/sobjects/LightningExitByPageMetrics
      operations:
      - name: lightningexitbypagemetrics
        method: GET
        description: Salesforce Lightning Exit by Page Metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-sobjects-LightningToggleMetrics
      path: /data/v64.0/sobjects/LightningToggleMetrics
      operations:
      - name: lightningtogglemetrics
        method: GET
        description: Salesforce Lightning Toggle Metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-sobjects-LightningUsageByAppTypeMetrics
      path: /data/v64.0/sobjects/LightningUsageByAppTypeMetrics
      operations:
      - name: lightningusagebyapptype
        method: GET
        description: Salesforce Lightning Usage by App Type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-sobjects-LightningUsageByBrowserMetrics
      path: /data/v64.0/sobjects/LightningUsageByBrowserMetrics
      operations:
      - name: lightningusagebypage
        method: GET
        description: Salesforce Lightning Usage by Page
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-sobjects-LightningUsageByFlexiPageMetrics
      path: /data/v64.0/sobjects/LightningUsageByFlexiPageMetrics
      operations:
      - name: lightningusagebyflexipage
        method: GET
        description: Salesforce Lightning Usage by Flexipage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-ui-api-actions-flexipage-FLEXIPAGE_NAMES
      path: /data/v64.0/ui-api/actions/flexipage/{FLEXIPAGE_NAMES}
      operations:
      - name: getlightningpageactions
        method: GET
        description: Salesforce Get Lightning Page Actions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: FLEXIPAGE_NAMES
          in: path
          type: string
          description: A Lightning page name, or a comma-delimited list of Lightning page names.
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: salesforce-lightning-rest
    port: 8080
    description: REST adapter for Salesforce — Lightning. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/data/v64-0/sobjects/lightningexitbypagemetrics
      name: data-v64-0-sobjects-lightningexitbypagemetrics
      description: REST surface for data-v64.0-sobjects-LightningExitByPageMetrics.
      operations:
      - method: GET
        name: lightningexitbypagemetrics
        description: Salesforce Lightning Exit by Page Metrics
        call: salesforce-lightning.lightningexitbypagemetrics
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/sobjects/lightningtogglemetrics
      name: data-v64-0-sobjects-lightningtogglemetrics
      description: REST surface for data-v64.0-sobjects-LightningToggleMetrics.
      operations:
      - method: GET
        name: lightningtogglemetrics
        description: Salesforce Lightning Toggle Metrics
        call: salesforce-lightning.lightningtogglemetrics
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/sobjects/lightningusagebyapptypemetrics
      name: data-v64-0-sobjects-lightningusagebyapptypemetrics
      description: REST surface for data-v64.0-sobjects-LightningUsageByAppTypeMetrics.
      operations:
      - method: GET
        name: lightningusagebyapptype
        description: Salesforce Lightning Usage by App Type
        call: salesforce-lightning.lightningusagebyapptype
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/sobjects/lightningusagebybrowsermetrics
      name: data-v64-0-sobjects-lightningusagebybrowsermetrics
      description: REST surface for data-v64.0-sobjects-LightningUsageByBrowserMetrics.
      operations:
      - method: GET
        name: lightningusagebypage
        description: Salesforce Lightning Usage by Page
        call: salesforce-lightning.lightningusagebypage
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/sobjects/lightningusagebyflexipagemetrics
      name: data-v64-0-sobjects-lightningusagebyflexipagemetrics
      description: REST surface for data-v64.0-sobjects-LightningUsageByFlexiPageMetrics.
      operations:
      - method: GET
        name: lightningusagebyflexipage
        description: Salesforce Lightning Usage by Flexipage
        call: salesforce-lightning.lightningusagebyflexipage
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/ui-api/actions/flexipage/{flexipage-names}
      name: data-v64-0-ui-api-actions-flexipage-flexipage-names
      description: REST surface for data-v64.0-ui-api-actions-flexipage-FLEXIPAGE_NAMES.
      operations:
      - method: GET
        name: getlightningpageactions
        description: Salesforce Get Lightning Page Actions
        call: salesforce-lightning.getlightningpageactions
        with:
          FLEXIPAGE_NAMES: rest.FLEXIPAGE_NAMES
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: salesforce-lightning-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce — Lightning. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: salesforce-lightning-exit-page-metrics
      description: Salesforce Lightning Exit by Page Metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-lightning.lightningexitbypagemetrics
      with:
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-lightning-toggle-metrics
      description: Salesforce Lightning Toggle Metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-lightning.lightningtogglemetrics
      with:
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-lightning-usage-app-type
      description: Salesforce Lightning Usage by App Type
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-lightning.lightningusagebyapptype
      with:
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-lightning-usage-page
      description: Salesforce Lightning Usage by Page
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-lightning.lightningusagebypage
      with:
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-lightning-usage-flexipage
      description: Salesforce Lightning Usage by Flexipage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-lightning.lightningusagebyflexipage
      with:
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-get-lightning-page-actions
      description: Salesforce Get Lightning Page Actions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-lightning.getlightningpageactions
      with:
        FLEXIPAGE_NAMES: tools.FLEXIPAGE_NAMES
      outputParameters:
      - type: object
        mapping: $.