Slack MCP

by korotovsky
Verified
MIT License
19
  • Apple
  • Linux

conversations_history

Retrieve Slack channel messages using channel_id, with pagination support via cursor. Fetch messages within specified time limits or message counts, streamlining conversation history management.

Instructions

Get messages from the channel by channel_id, the last row/column in the response is used as 'cursor' parameter for pagination if not empty

Input Schema

NameRequiredDescriptionDefault
channel_idYesID of the channel in format Cxxxxxxxxxx
cursorNoCursor for pagination. Use the value of the last row and column in the response as next_cursor field returned from the previous request.
limitNoLimit of messages to fetch in format of maximum ranges of time (e.g. 1d - 1 day, 30d - 30 days, 90d - 90 days which is a default limit for free tier history) or number of messages (e.g. 50). Must be empty when 'cursor' is provided.1d

Input Schema (JSON Schema)

{ "properties": { "channel_id": { "description": "ID of the channel in format Cxxxxxxxxxx", "type": "string" }, "cursor": { "description": "Cursor for pagination. Use the value of the last row and column in the response as next_cursor field returned from the previous request.", "type": "string" }, "limit": { "default": "1d", "description": "Limit of messages to fetch in format of maximum ranges of time (e.g. 1d - 1 day, 30d - 30 days, 90d - 90 days which is a default limit for free tier history) or number of messages (e.g. 50). Must be empty when 'cursor' is provided.", "type": "string" } }, "required": [ "channel_id" ], "type": "object" }

You must be authenticated.

Other Tools from Slack MCP

Related Tools

ID: uy6bsglezr