get_channel_messages
Retrieve recent messages, sender details, and timestamps from a specific Microsoft Teams channel using Team ID and Channel ID. Supports fetching up to 50 messages at a time.
Instructions
Retrieve recent messages from a specific channel in a Microsoft Team. Returns message content, sender information, and timestamps.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
channelId | Yes | Channel ID | |
limit | No | Number of messages to retrieve (default: 20) | |
teamId | Yes | Team ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"channelId": {
"description": "Channel ID",
"type": "string"
},
"limit": {
"default": 20,
"description": "Number of messages to retrieve (default: 20)",
"maximum": 50,
"minimum": 1,
"type": "number"
},
"teamId": {
"description": "Team ID",
"type": "string"
}
},
"required": [
"teamId",
"channelId"
],
"type": "object"
}