> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zocomputer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Slack history

> Get message history from a Slack channel or thread.

{/* Tool: get_slack_history */}

When called from a Slack conversation, the tool description includes the current channel\_id, thread\_id, and team\_id. These are used as defaults when not specified.

## Parameters

<ParamField path="channel_id" type="string" default={""}>
  Slack channel ID to read from. Omit to use the current conversation's channel.
</ParamField>

<ParamField path="team_id" type="string" default={""}>
  Slack workspace team ID. Omit to use the current conversation's workspace.
</ParamField>

<ParamField path="thread_ts" type="string" default={""}>
  Parent message timestamp to read thread replies. Omit for channel-level messages.
</ParamField>

<ParamField path="latest" type="string" default={""}>
  Slack timestamp — fetch messages before this time.
</ParamField>

<ParamField path="oldest" type="string" default={""}>
  Slack timestamp — fetch messages after this time.
</ParamField>

<ParamField path="cursor" type="string" default={""}>
  Pagination cursor from a previous response's next\_cursor.
</ParamField>

<ParamField path="limit" type="number" default={50}>
  Number of messages to return (1–100, default 50).
</ParamField>
