mattermost_get_channel_history
Retrieve channel messages from Mattermost with optional filters for date range, post IDs, or message count.
Instructions
Get messages from a Mattermost channel. By default returns ALL messages. Use limit parameter to restrict the number of messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | The ID of the channel | |
| limit | No | Number of messages to retrieve. If not specified or 0, returns ALL messages from the channel. | |
| page | No | Page number for pagination (starting from 0). Only used when limit > 0. | |
| since_date | No | Get messages after this date (ISO 8601 format, e.g., '2025-12-18' or '2025-12-18T10:00:00Z') | |
| before_date | No | Get messages before this date (ISO 8601 format). Use with since_date to get messages for a specific date range (e.g., since_date='2025-12-18', before_date='2025-12-19' for all messages on Dec 18). | |
| before_post_id | No | Get messages before this post ID | |
| after_post_id | No | Get messages after this post ID |