Teams Read Channel Messages
teams_read_channel_messagesReads the most recent posts of a Microsoft Teams channel (team_id from teams_list_teams, channel_id from teams_list_channels), oldest first, from Microsoft 365. Top-level posts only: replies are not included. Reading channel messages needs a permission that an administrator of the Microsoft 365 organization approves; without it the answer is consent_required and says what to do. Reads at most 20 pages of 50 posts, deleted ones included. When the read is cut (by that bound, or because the call ran out of time) the answer has truncated: true. Needs a work or school Microsoft 365 account connected with connect_m365_account (personal Microsoft accounts have no Teams reads).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items to return (default 50) | |
| account | No | Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account. | |
| team_id | Yes | Team ID from teams_list_teams | |
| channel_id | Yes | Channel ID from teams_list_channels |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| count | No | ||
| error | No | ||
| account | No | The email (UPN) of the Microsoft 365 account this call used. | |
| messages | No | ||
| truncated | No | Present and true only when the read was cut before it had everything it was asked for. |