list-channel-messages
list-channel-messagesRetrieve team channel messages in reverse chronological order, with automatic pagination and continuation tokens for large histories. Use search-m365 for targeted keyword searches.
Instructions
List messages of a team channel, newest first (Graph does not support server-side filtering here; use search-m365 for keyword search).
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": {
"teamId": "<teamId>",
"channelId": "<channelId>"
},
"name": "list-channel-messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Continuation token (nextCursor of a previous truncated response). Continues that listing; other query inputs are ignored. | |
| teamId | Yes | Value for teamId | |
| maxItems | No | Maximum items to return across pages (default 50, max 500). Pagination via @odata.nextLink is handled automatically; when the result is truncated, pass its nextCursor as cursor to continue. | |
| channelId | Yes | Value for channelId |