naftiko: 1.0.0-alpha2 info: label: Salesforce — Feed description: 'Salesforce — Feed. 7 operations. Lead operation: Salesforce Feed Elements, Post and Search. Self-contained Naftiko capability covering one Salesforce business surface.' tags: - Salesforce - Feed created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_API_KEY: SALESFORCE_API_KEY capability: consumes: - type: http namespace: salesforce-feed baseUri: https://login.salesforce.com description: Salesforce — Feed business capability. Self-contained, no shared references. resources: - name: data-v64.0-chatter-feed-elements path: /data/v64.0/chatter/feed-elements operations: - name: feedelementspostandsearch method: POST description: Salesforce Feed Elements, Post and Search outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: feedElementType in: query type: string description: 'Feed elements are the top-level objects that a feed contains. The feed element type describes the characteristics of that feed element. One of these values:' required: true - name: subjectId in: query type: string required: true - name: text in: query type: string required: true - name: data-v64.0-chatter-feed-elements-batch path: /data/v64.0/chatter/feed-elements/batch operations: - name: feedelementsbatchpost method: POST description: Salesforce Feed Elements, Batch Post outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: data-v64.0-chatter-feed-elements-FEED_ELEMENT_ID path: /data/v64.0/chatter/feed-elements/{FEED_ELEMENT_ID} operations: - name: feedelementdelete method: DELETE description: Salesforce Feed Element - Delete outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: FEED_ELEMENT_ID in: path type: string required: true - name: data-v64.0-chatter-feed-elements-FEED_ELEMENT_ID-capabilities-comments-items path: /data/v64.0/chatter/feed-elements/{FEED_ELEMENT_ID}/capabilities/comments/items operations: - name: feedelementscapabilitycommentsitems method: POST description: Salesforce Feed Elements Capability, Comments Items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: text in: query type: string required: true - name: FEED_ELEMENT_ID in: path type: string required: true - name: data-v64.0-chatter-feeds-news-me-feed-elements path: /data/v64.0/chatter/feeds/news/me/feed-elements operations: - name: newsfeedelements method: GET description: Salesforce News Feed Elements outputRawFormat: json outputParameters: - name: result type: object value: $. - name: data-v64.0-chatter-feeds-record-RECORD_GROUP_ID-feed-elements path: /data/v64.0/chatter/feeds/record/{RECORD_GROUP_ID}/feed-elements operations: - name: recordfeedelements method: GET description: Salesforce Record Feed Elements outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: RECORD_GROUP_ID in: path type: string required: true - name: data-v64.0-chatter-feeds-user-profile-USER_ID-feed-elements path: /data/v64.0/chatter/feeds/user-profile/{USER_ID}/feed-elements operations: - name: userprofilefeedelements method: GET description: Salesforce User Profile Feed Elements outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: USER_ID in: path type: string required: true authentication: type: bearer token: '{{env.SALESFORCE_API_KEY}}' exposes: - type: rest namespace: salesforce-feed-rest port: 8080 description: REST adapter for Salesforce — Feed. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/data/v64-0/chatter/feed-elements name: data-v64-0-chatter-feed-elements description: REST surface for data-v64.0-chatter-feed-elements. operations: - method: POST name: feedelementspostandsearch description: Salesforce Feed Elements, Post and Search call: salesforce-feed.feedelementspostandsearch with: feedElementType: rest.feedElementType subjectId: rest.subjectId text: rest.text outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/chatter/feed-elements/batch name: data-v64-0-chatter-feed-elements-batch description: REST surface for data-v64.0-chatter-feed-elements-batch. operations: - method: POST name: feedelementsbatchpost description: Salesforce Feed Elements, Batch Post call: salesforce-feed.feedelementsbatchpost with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/chatter/feed-elements/{feed-element-id} name: data-v64-0-chatter-feed-elements-feed-element-id description: REST surface for data-v64.0-chatter-feed-elements-FEED_ELEMENT_ID. operations: - method: DELETE name: feedelementdelete description: Salesforce Feed Element - Delete call: salesforce-feed.feedelementdelete with: FEED_ELEMENT_ID: rest.FEED_ELEMENT_ID outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/chatter/feed-elements/{feed-element-id}/capabilities/comments/items name: data-v64-0-chatter-feed-elements-feed-element-id-capabilities-comments-items description: REST surface for data-v64.0-chatter-feed-elements-FEED_ELEMENT_ID-capabilities-comments-items. operations: - method: POST name: feedelementscapabilitycommentsitems description: Salesforce Feed Elements Capability, Comments Items call: salesforce-feed.feedelementscapabilitycommentsitems with: text: rest.text FEED_ELEMENT_ID: rest.FEED_ELEMENT_ID outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/chatter/feeds/news/me/feed-elements name: data-v64-0-chatter-feeds-news-me-feed-elements description: REST surface for data-v64.0-chatter-feeds-news-me-feed-elements. operations: - method: GET name: newsfeedelements description: Salesforce News Feed Elements call: salesforce-feed.newsfeedelements outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/chatter/feeds/record/{record-group-id}/feed-elements name: data-v64-0-chatter-feeds-record-record-group-id-feed-elements description: REST surface for data-v64.0-chatter-feeds-record-RECORD_GROUP_ID-feed-elements. operations: - method: GET name: recordfeedelements description: Salesforce Record Feed Elements call: salesforce-feed.recordfeedelements with: RECORD_GROUP_ID: rest.RECORD_GROUP_ID outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/chatter/feeds/user-profile/{user-id}/feed-elements name: data-v64-0-chatter-feeds-user-profile-user-id-feed-elements description: REST surface for data-v64.0-chatter-feeds-user-profile-USER_ID-feed-elements. operations: - method: GET name: userprofilefeedelements description: Salesforce User Profile Feed Elements call: salesforce-feed.userprofilefeedelements with: USER_ID: rest.USER_ID outputParameters: - type: object mapping: $. - type: mcp namespace: salesforce-feed-mcp port: 9090 transport: http description: MCP adapter for Salesforce — Feed. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: salesforce-feed-elements-post-and description: Salesforce Feed Elements, Post and Search hints: readOnly: true destructive: false idempotent: false call: salesforce-feed.feedelementspostandsearch with: feedElementType: tools.feedElementType subjectId: tools.subjectId text: tools.text outputParameters: - type: object mapping: $. - name: salesforce-feed-elements-batch-post description: Salesforce Feed Elements, Batch Post hints: readOnly: false destructive: false idempotent: false call: salesforce-feed.feedelementsbatchpost with: body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-feed-element-delete description: Salesforce Feed Element - Delete hints: readOnly: false destructive: true idempotent: true call: salesforce-feed.feedelementdelete with: FEED_ELEMENT_ID: tools.FEED_ELEMENT_ID outputParameters: - type: object mapping: $. - name: salesforce-feed-elements-capability-comments description: Salesforce Feed Elements Capability, Comments Items hints: readOnly: false destructive: false idempotent: false call: salesforce-feed.feedelementscapabilitycommentsitems with: text: tools.text FEED_ELEMENT_ID: tools.FEED_ELEMENT_ID outputParameters: - type: object mapping: $. - name: salesforce-news-feed-elements description: Salesforce News Feed Elements hints: readOnly: true destructive: false idempotent: true call: salesforce-feed.newsfeedelements outputParameters: - type: object mapping: $. - name: salesforce-record-feed-elements description: Salesforce Record Feed Elements hints: readOnly: true destructive: false idempotent: true call: salesforce-feed.recordfeedelements with: RECORD_GROUP_ID: tools.RECORD_GROUP_ID outputParameters: - type: object mapping: $. - name: salesforce-user-profile-feed-elements description: Salesforce User Profile Feed Elements hints: readOnly: true destructive: false idempotent: true call: salesforce-feed.userprofilefeedelements with: USER_ID: tools.USER_ID outputParameters: - type: object mapping: $.