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.
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 | |||