slack_channels_history
Retrieve Slack channel history over a date range, with threaded replies nested inline. Specify channels directly or discover them with a pattern.
Instructions
History for several channels over one time range, threads nested inline.
Give either an explicit channels list or a pattern to discover them.
Replies are attached to their parent message rather than returned flat,
which matters for channels whose substance lives in threads.
Discovery by pattern only sees channels you have joined — a matching
channel you are not a member of is invisible. That limit is deliberate:
enumerating an entire Enterprise Grid workspace is throttled past usability.
Args:
channels: Channel names or IDs. Mutually exclusive with pattern.
pattern: fnmatch glob over joined channel names, e.g. 'team-*'.
oldest: Window start — 'YYYY-MM-DD', an epoch, or an offset like '-7d'.
latest: Window end, same formats. Defaults to now.
expand_threads: Fetch replies for messages that have them.
min_members: With pattern, skip channels below this membership. Costs
one extra (cached) API call per matching channel.
max_text: Truncate message text to this many characters. None keeps all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latest | No | ||
| oldest | No | ||
| pattern | No | ||
| channels | No | ||
| max_text | No | ||
| min_members | No | ||
| expand_threads | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||