Get Chat Messages
get_chat_messagesRetrieve Microsoft Teams chat messages by chat ID. Filter by time range, sender, or fetch a single message by ID to get the exact messages you need.
Instructions
List chat messages or read one by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to retrieve (default: 20, max: 2000) | |
| since | No | Get messages since this ISO datetime | |
| until | No | Get messages until this ISO datetime | |
| chatId | Yes | Chat ID | |
| orderBy | No | Sort order | createdDateTime |
| fetchAll | No | Follow pages up to limit. | |
| fromUser | No | Filter messages from specific user ID | |
| tenantId | No | Target tenant ID from list_tenants. Omit only when a default is configured or exactly one tenant is connected. Resource IDs belong to this tenant. | |
| messageId | No | Read one message; ignores list filters, sorting and pagination. | |
| descending | No | Sort in descending order (newest first) | |
| contentFormat | No | Markdown or original message body. | markdown |