teams_get_channel_posts
Retrieves posts and replies from a Microsoft Teams channel, including recent posts, older posts before a specified post, or posts around a message. Supports work channels and Teams free communities.
Instructions
Posts in a channel, each with its replies: the newest, older ones (before_post_id) or the ones around a message (around_message_id). Work channels and Teams free communities.
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": {
"channel_id": "<channel_id>"
},
"name": "teams_get_channel_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| account | No | Account alias (see teams_accounts). Defaults to the default account. | |
| team_id | No | Team or community thread id (19:…); found from your teams when omitted | |
| channel_id | Yes | ||
| before_post_id | No | Older posts than this one (e.g. the oldest id of the previous page) | |
| around_message_id | No | Posts around this message id, e.g. a search hit or a link |