slack_get_channel_history
Read recent messages from a Slack channel, newest first, with paging and an optional time cutoff. Use it to review conversation history, then page with the cursor for more.
Instructions
Fetch recent messages in a Slack channel. Returns {messages: [...], has_more: bool, next_cursor: str}, plus a note when has_more is true -- more messages exist than were returned (a Slack-imposed cap can make a page smaller than limit; see docs/slack-setup.md) -- call again with cursor=next_cursor to read the next page instead of assuming this is everything. Each message is {ts, channel_id, channel_name, user_id, user_name, text, thread_ts, reply_count, read_state}, newest first (read_state is 'unread', 'read' or 'unknown', from your own Slack read marker), one page of up to limit messages (default 50, capped at 1000); text and names may be redacted by the user's privacy settings. Use slack_get_thread_replies for a thread's replies, or slack_search_messages to find messages by text or person. Requires user approval. Pass minutes to read only the last N minutes of this conversation; it reads the conversation itself, so nothing is lost to search-index delay.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum messages to fetch, newest first. Default 50, capped at 1000. | |
| cursor | No | Opaque cursor from a previous result's next_cursor; empty starts at the newest messages. | |
| reason | Yes | One sentence: why are you calling this tool right now? | |
| minutes | No | Only fetch messages from the last N minutes (1-10080, up to 7 days). 0 (the default) means no cutoff. | |
| channel_id | Yes | Id of the channel or conversation, from the id field of slack_list_channels, slack_list_dms or slack_list_group_chats, or from slack_resolve_permalink. A name is not accepted. |