list-chat-messages
list-chat-messagesRetrieve Teams chat messages newest first, with optional time-range filters to narrow results to relevant periods.
Instructions
List messages of a chat, newest first. Supports a time range (lastModifiedDateTime filter). Keyword filtering must be done client-side or via search-m365 with entityTypes=["chatMessage"].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of explicit time range (ISO date or datetime) | |
| from | No | Start of explicit time range (ISO date or datetime, overrides timeRange) | |
| chatId | Yes | Value for chatId | |
| cursor | No | Continuation token (nextCursor of a previous truncated response). Continues that listing; other query inputs are ignored. | |
| 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. | |
| timeRange | No | Named time range applied on lastModifiedDateTime |