get_chat_messages
Retrieve recent messages from Microsoft Teams chat conversations to access message content, sender details, and timestamps for analysis or review.
Instructions
Retrieve recent messages from a specific chat conversation. Returns message content, sender information, and timestamps.
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": {
"chatId": "<chatId>"
},
"name": "get_chat_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Chat ID (e.g. 19:meeting_Njhi..j@thread.v2 | |
| limit | No | Number of messages to retrieve | |
| since | No | Get messages since this ISO datetime | |
| until | No | Get messages until this ISO datetime | |
| fromUser | No | Filter messages from specific user ID | |
| orderBy | No | Sort order | createdDateTime |
| descending | No | Sort in descending order (newest first) |