Get Slack Channel History
slack_get_channel_historyRetrieve recent Slack messages from any channel, DM, or group you belong to. Filter by channel, time range, and limit to get message text, author, reactions, and thread details.
Instructions
Fetch recent messages from a Slack channel, DM, or group message. Uses your user token so you can access any channel you're a member of.
Args:
channel (string): Channel ID (e.g. C012AB3CD) or name (e.g. #general)
limit (number): Number of messages to return, 1-200 (default: 50)
oldest (string): Start of time range as Unix timestamp (optional)
latest (string): End of time range as Unix timestamp (optional)
inclusive (boolean): Include messages with oldest/latest timestamps (default: true)
Returns: List of messages with text, author, timestamp, reactions, and thread info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to return | |
| latest | No | End of time range (Unix timestamp) | |
| oldest | No | Start of time range (Unix timestamp) | |
| channel | Yes | Channel ID or name (e.g. C012AB3CD or #general) | |
| inclusive | No | Include boundary messages |