> ## 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 Discord history

> Get message history from a Discord channel, thread, or DM.

{/* Tool: get_discord_history */}

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

## Parameters

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

<ParamField path="around" type="string" default={""}>
  Message ID — fetch messages around this message. Mutually exclusive with before/after.
</ParamField>

<ParamField path="before" type="string" default={""}>
  Message ID — fetch messages older than this. Mutually exclusive with around/after.
</ParamField>

<ParamField path="after" type="string" default={""}>
  Message ID — fetch messages newer than this. Mutually exclusive with around/before.
</ParamField>

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