naftiko: 1.0.0-alpha2 info: label: Salesforce — Pages description: 'Salesforce — Pages. 5 operations. Lead operation: Salesforce Lightning Exit by Page Metrics. Self-contained Naftiko capability covering one Salesforce business surface.' tags: - Salesforce - Pages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_API_KEY: SALESFORCE_API_KEY capability: consumes: - type: http namespace: salesforce-pages baseUri: https://login.salesforce.com description: Salesforce — Pages 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-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-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 - name: data-v64.0-ui-api-actions-record-RECORD_IDS path: /data/v64.0/ui-api/actions/record/{RECORD_IDS} operations: - name: getrecorddetailpageactions method: GET description: Salesforce Get Record Detail Page Actions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: RECORD_IDS in: path type: string description: A single record ID, or a comma-delimited list of record IDs. required: true - name: data-v64.0-ui-api-actions-record-RECORD_ID-record-edit path: /data/v64.0/ui-api/actions/record/{RECORD_ID}/record-edit operations: - name: getrecordeditpageactions method: GET description: Salesforce Get Record Edit Page Actions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: RECORD_ID in: path type: string description: Record ID required: true authentication: type: bearer token: '{{env.SALESFORCE_API_KEY}}' exposes: - type: rest namespace: salesforce-pages-rest port: 8080 description: REST adapter for Salesforce — Pages. 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-pages.lightningexitbypagemetrics 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-pages.lightningusagebypage 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-pages.getlightningpageactions with: FLEXIPAGE_NAMES: rest.FLEXIPAGE_NAMES outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/ui-api/actions/record/{record-ids} name: data-v64-0-ui-api-actions-record-record-ids description: REST surface for data-v64.0-ui-api-actions-record-RECORD_IDS. operations: - method: GET name: getrecorddetailpageactions description: Salesforce Get Record Detail Page Actions call: salesforce-pages.getrecorddetailpageactions with: RECORD_IDS: rest.RECORD_IDS outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/ui-api/actions/record/{record-id}/record-edit name: data-v64-0-ui-api-actions-record-record-id-record-edit description: REST surface for data-v64.0-ui-api-actions-record-RECORD_ID-record-edit. operations: - method: GET name: getrecordeditpageactions description: Salesforce Get Record Edit Page Actions call: salesforce-pages.getrecordeditpageactions with: RECORD_ID: rest.RECORD_ID outputParameters: - type: object mapping: $. - type: mcp namespace: salesforce-pages-mcp port: 9090 transport: http description: MCP adapter for Salesforce — Pages. 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-pages.lightningexitbypagemetrics 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-pages.lightningusagebypage 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-pages.getlightningpageactions with: FLEXIPAGE_NAMES: tools.FLEXIPAGE_NAMES outputParameters: - type: object mapping: $. - name: salesforce-get-record-detail-page description: Salesforce Get Record Detail Page Actions hints: readOnly: true destructive: false idempotent: true call: salesforce-pages.getrecorddetailpageactions with: RECORD_IDS: tools.RECORD_IDS outputParameters: - type: object mapping: $. - name: salesforce-get-record-edit-page description: Salesforce Get Record Edit Page Actions hints: readOnly: true destructive: false idempotent: true call: salesforce-pages.getrecordeditpageactions with: RECORD_ID: tools.RECORD_ID outputParameters: - type: object mapping: $.