get_channel_messages
Retrieve recent messages from a Microsoft Teams channel by providing team and channel IDs, with an option to limit the number of messages.
Instructions
Get recent messages from a Teams channel
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 |
|---|---|---|---|
| top | No | Number of messages to return (default: 20) | |
| teamId | Yes | The ID of the Team | |
| channelId | Yes | The ID of the channel |