Salesforce · Capability

Salesforce — Elements

Salesforce — Elements. 6 operations. Lead operation: Salesforce Feed Elements, Post and Search. Self-contained Naftiko capability covering one Salesforce business surface.

Run with Naftiko SalesforceElements

What You Can Do

POST
Feedelementspostandsearch — Salesforce Feed Elements, Post and Search
/v1/data/v64-0/chatter/feed-elements
POST
Feedelementsbatchpost — Salesforce Feed Elements, Batch Post
/v1/data/v64-0/chatter/feed-elements/batch
POST
Feedelementscapabilitycommentsitems — Salesforce Feed Elements Capability, Comments Items
/v1/data/v64-0/chatter/feed-elements/{feed-element-id}/capabilities/comments/items
GET
Newsfeedelements — Salesforce News Feed Elements
/v1/data/v64-0/chatter/feeds/news/me/feed-elements
GET
Recordfeedelements — Salesforce Record Feed Elements
/v1/data/v64-0/chatter/feeds/record/{record-group-id}/feed-elements
GET
Userprofilefeedelements — Salesforce User Profile Feed Elements
/v1/data/v64-0/chatter/feeds/user-profile/{user-id}/feed-elements

MCP Tools

salesforce-feed-elements-post-and

Salesforce Feed Elements, Post and Search

read-only
salesforce-feed-elements-batch-post

Salesforce Feed Elements, Batch Post

salesforce-feed-elements-capability-comments

Salesforce Feed Elements Capability, Comments Items

salesforce-news-feed-elements

Salesforce News Feed Elements

read-only idempotent
salesforce-record-feed-elements

Salesforce Record Feed Elements

read-only idempotent
salesforce-user-profile-feed-elements

Salesforce User Profile Feed Elements

read-only idempotent

Capability Spec

salesforce-elements.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce — Elements
  description: 'Salesforce — Elements. 6 operations. Lead operation: Salesforce Feed Elements, Post and Search. Self-contained
    Naftiko capability covering one Salesforce business surface.'
  tags:
  - Salesforce
  - Elements
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_API_KEY: SALESFORCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: salesforce-elements
    baseUri: https://login.salesforce.com
    description: Salesforce — Elements 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-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-elements-rest
    port: 8080
    description: REST adapter for Salesforce — Elements. 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-elements.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-elements.feedelementsbatchpost
        with:
          body: rest.body
        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-elements.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-elements.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-elements.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-elements.userprofilefeedelements
        with:
          USER_ID: rest.USER_ID
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: salesforce-elements-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce — Elements. 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-elements.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-elements.feedelementsbatchpost
      with:
        body: tools.body
      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-elements.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-elements.newsfeedelements
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-record-feed-elements
      description: Salesforce Record Feed Elements
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-elements.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-elements.userprofilefeedelements
      with:
        USER_ID: tools.USER_ID
      outputParameters:
      - type: object
        mapping: $.