Slack Channel History
slack_channel_historyGet message history from a Slack channel. Bot auto-joins the channel if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of messages to return (default 20, max 1000) | |
| cursor | No | Pagination cursor for next page of results | |
| latest | No | Only messages before this Unix timestamp | |
| oldest | No | Only messages after this Unix timestamp | |
| channel | Yes | Channel ID (e.g., "C01234ABCDE") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Whether the API call succeeded | |
| error | No | Error code if API call failed | |
| message | No | Error message or connection message | |
| messages | No | List of messages in the channel | |
| response_metadata | No | Pagination metadata |