Get Chat Messages
discourse_get_chat_messagesRetrieve messages from a Discourse chat channel. Use pagination options to get older or newer messages around a specific message or date.
Instructions
Get messages from a chat channel. Returns JSON object with channel_id, messages array (id, username, created_at, message, edited, thread_id, in_reply_to_id), and meta.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | Pagination direction: 'past' for older messages, 'future' for newer | |
| page_size | No | Number of messages to return (default: 50, max: 50) | |
| channel_id | Yes | The chat channel ID | |
| target_date | No | ISO 8601 date string to query messages around | |
| target_message_id | No | Message ID to query around or paginate from |