graph_get_chat_messages
Retrieve messages from a specific Microsoft Teams chat, including full HTML bodies, attachments, and mentions. Use compact mode or next-link paging to browse large message collections.
Instructions
Get messages from a specific chat.
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: chat_id: The chat ID. 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": {
"chat_id": "<chat_id>"
},
"name": "graph_get_chat_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| chat_id | Yes | ||
| compact | No | ||
| next_link | No | ||
| include_next_link | No |