read_channel
Read one Slack channel's recent message history (conversations.history) — channel accepts a channel/group id (C…/G…), a DM conversation id (D…), or '#name'. Read-only: it never opens or creates a DM, so a user id (U…) or 'me' is refused; pass a DM's D… id instead. After reconnect grants user-token channels:history/groups:history, channels the person belongs to can be read even when the bot is absent; older connections still use the bot. Person-to-person DMs use user-token im:history, with the bot as fallback. Pass account when more than one workspace is connected. Slack caps this method at 15 messages per request and 1 request per minute per workspace — request small limits and respect the named retry delay after a rate-limit failure. To read a message's thread, pass its external_id (channel:ts) as read_thread's channel. If this fails saying the bot is not in the channel, the user has to reconnect the workspace once (or invite the bot) — retrying will not help.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel": "<channel>"
},
"name": "read_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages (default 20). | |
| latest | No | Only messages before this ts (exclusive). | |
| oldest | No | Only messages after this ts (exclusive). | |
| account | No | Workspace label. Required when several history-capable workspaces are connected. | |
| channel | Yes | Channel/group id (C…/G…), DM conversation id (D…), or '#name' (see search_channels). A search hit's external_id ('C…:ts') or a Slack message link is also accepted — the channel is taken from it. A user id (U…) or 'me' is refused — reading never opens a DM; pass the DM's D… id (e.g. from a search_messages hit's external_id). |