Get channel history
get_channel_historyRead recent messages from a Mattermost channel or DM in chronological order. Use the optional substring filter and date range to locate a topic.
Instructions
Read recent messages from one channel in chronological order. channel accepts a channel name (#general), a channel id, or '@username' for a DM. The optional filter does client-side substring matching, which works reliably for Korean text even when server-side search does not — use it to scan a channel for a topic.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel": "<channel>"
},
"name": "get_channel_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | Team name, if the channel name is ambiguous across teams | |
| after | No | Only messages on/after this date, YYYY-MM-DD (inclusive) | |
| limit | No | Max messages to return (default 50) | |
| before | No | Only messages on/before this date, YYYY-MM-DD (inclusive) | |
| filter | No | Case-insensitive substring to match in message text or author name | |
| channel | Yes | Channel name, channel id, or @username for a DM |