get_channel_messages
Retrieve recent messages from a Microsoft Teams channel to access message content, sender details, and timestamps for monitoring or analysis.
Instructions
Retrieve recent messages from a specific channel in a Microsoft Team. 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": {
"teamId": "<teamId>",
"channelId": "<channelId>"
},
"name": "get_channel_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | Yes | Team ID | |
| channelId | Yes | Channel ID | |
| limit | No | Number of messages to retrieve (default: 20) |