Slack · Capability

Slack Search API — Search

Slack Search API — Search. 1 operations. Lead operation: Slack Get Search Messages. Self-contained Naftiko capability covering one Slack business surface.

Run with Naftiko SlackSearch

What You Can Do

GET
Getsearchmessages — Slack Get Search Messages
/v1/search-messages

MCP Tools

slack-get-search-messages

Slack Get Search Messages

read-only idempotent

Capability Spec

search-search.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Slack Search API — Search
  description: 'Slack Search API — Search. 1 operations. Lead operation: Slack Get Search Messages. Self-contained Naftiko
    capability covering one Slack business surface.'
  tags:
  - Slack
  - Search
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SLACK_API_KEY: SLACK_API_KEY
capability:
  consumes:
  - type: http
    namespace: search-search
    baseUri: ''
    description: Slack Search API — Search business capability. Self-contained, no shared references.
    resources:
    - name: search.messages
      path: /search.messages
      operations:
      - name: getsearchmessages
        method: GET
        description: Slack Get Search Messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: token
          in: query
          type: string
          description: 'Authentication token. Requires scope: `search:read`'
          required: true
        - name: count
          in: query
          type: integer
          description: Pass the number of results you want per "page". Maximum of `100`.
        - name: highlight
          in: query
          type: boolean
          description: Pass a value of `true` to enable query highlight markers (see below).
        - name: page
          in: query
          type: integer
        - name: query
          in: query
          type: string
          description: Search query.
          required: true
        - name: sort
          in: query
          type: string
          description: Return matches sorted by either `score` or `timestamp`.
        - name: sort_dir
          in: query
          type: string
          description: Change sort direction to ascending (`asc`) or descending (`desc`).
  exposes:
  - type: rest
    namespace: search-search-rest
    port: 8080
    description: REST adapter for Slack Search API — Search. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/search-messages
      name: search-messages
      description: REST surface for search.messages.
      operations:
      - method: GET
        name: getsearchmessages
        description: Slack Get Search Messages
        call: search-search.getsearchmessages
        with:
          token: rest.token
          count: rest.count
          highlight: rest.highlight
          page: rest.page
          query: rest.query
          sort: rest.sort
          sort_dir: rest.sort_dir
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: search-search-mcp
    port: 9090
    transport: http
    description: MCP adapter for Slack Search API — Search. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: slack-get-search-messages
      description: Slack Get Search Messages
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: search-search.getsearchmessages
      with:
        token: tools.token
        count: tools.count
        highlight: tools.highlight
        page: tools.page
        query: tools.query
        sort: tools.sort
        sort_dir: tools.sort_dir
      outputParameters:
      - type: object
        mapping: $.