search_messages
Search Slack messages using full-text queries and modifiers to filter by channel, user, or date.
Instructions
Search messages with Slack's full-text search.
Slack search modifiers work in query: in:#channel, from:@user,
before:YYYY-MM-DD, after:YYYY-MM-DD, "exact phrase". The
explicit channel param is sugar — when provided, prepends
in:<channel> to the query.
Requires xoxc or xoxp auth (xoxb cannot search). Errors loudly with the workspace's actual auth_type if search isn't available.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | timestamp | |
| limit | No | ||
| query | Yes | ||
| channel | No | ||
| sort_dir | No | desc | |
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||