Skip to content
Software capabilities

Slack capability

How to search Slack messages

Use the Slack search bar for a one-off lookup. Use assistant.search.context to retrieve matches in an integration, with a token that covers the conversation types you need.

Documentation reviewed

Ways to do it

API

assistant.search.context

Submit a query to Slack’s Real-time Search API and request message results.

Requirements
A Slack app and authorized search scopes for the target conversations. Use a user token for private conversations or for searches outside the Slack client.
Limitations
Results default to public channels. Set channel_types and authorize the matching scopes to extend the search.

Example

{
  "query": "in:engineering deploy checklist",
  "limit": 5
}
Read source: Slack Real-time Search API reference

MCP

Slack MCP search messages and files

Find relevant messages from a connected MCP client and refine by date or user.

Requirements
An authorized Slack MCP client with access to the target workspace and conversations.
Limitations
Search scope depends on the authorized connection. A client cannot retrieve conversations outside that scope.
Read source: Slack MCP search tools

Interface

Slack search bar

Enter a phrase and narrow the message results with a modifier such as in: or from:.

Requirements
A signed-in Slack workspace member with access to the conversation.
Limitations
The workspace’s history availability and your access determine which messages are discoverable.

Example

in:engineering "deploy checklist"
Read source: Slack search help