graph_get_channel_messages
Retrieve messages from a Microsoft Teams channel, including full HTML bodies, attachments, and mentions. Use compact fields and next-link paging to browse large collections efficiently.
Instructions
Get messages from a channel.
Messages carry full HTML bodies plus their attachments and mentions, so
compact narrows them to the identifying fields. Without it no $select is
sent and the response is unchanged.
Args: team_id: The team ID (from graph_list_teams). channel_id: The channel ID (from graph_list_channels). top: Maximum number of messages to return (default 50, maximum 50). compact: Whether to return only the identifying fields instead of the full record (default false). Use it to page through large collections cheaply. next_link: Opaque nextLink URL from a previous call, used to fetch the next page. Overrides the other paging arguments when supplied. include_next_link: Whether to wrap the result as {items, next_link} so paging can continue (default false, which returns a bare list).
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": {
"team_id": "<team_id>",
"channel_id": "<channel_id>"
},
"name": "graph_get_channel_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| compact | No | ||
| team_id | Yes | ||
| next_link | No | ||
| channel_id | Yes | ||
| include_next_link | No |