Get Direct Messages
get_direct_messagesRetrieve direct message history with a specific Mattermost user, newest first, and filter by timestamp, limit results, or page backward through older messages.
Instructions
Get direct message history with a specific user, newest first.
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": {
"username": "<username>"
},
"name": "get_direct_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages to return. Default: 30. | |
| since | No | ISO 8601 datetime — only return messages after this timestamp. | |
| before | No | A post ID — return messages older than it, to page back through history. | |
| username | Yes | The Mattermost username (without @). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |