?
fetchSlackChannelHistory
Fetch recent message history from a Slack channel.
mindstudio.fetchSlackChannelHistory({ channelId }) → Result
Fetches recent messages from a Slack channel via a connected bot — read the last stretch of a channel to summarize a thread or react to what was said.
Parameters
connectionId
string
Slack OAuth connection ID (leave empty to allow user to select)
channelId
string
RequiredSlack channel ID (leave empty to allow user to select a channel)
limit
number
Maximum number of messages to return (1-15)
startDate
string
Earliest date to include messages from
endDate
string
Latest date to include messages up to
includeImages
boolean
Whether to include images in the output
includeRawMessage
boolean
Whether to include the raw Slack message object (useful for bot messages with complex attachments)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.fetchSlackChannelHistory({ channelId: /* ... */ });