list_channel_messages
Fetch root messages from a Microsoft Teams channel, newest first. Use team and channel IDs to retrieve message snippets or full bodies, with pagination support.
Instructions
List root messages in a channel, newest first.
Replies are not included here; fetch them with list_message_replies.
Args: team_id: Graph team id. channel_id: Graph channel id (from list_channels). limit: 1-50 (Graph caps channel message pages at 50). Default 25. page_token: Continuation token from a previous result. include_body: When True, include each message's full body and any attachment card payloads (e.g. Adaptive Card JSON for bot posts). Default False (snippet only; card text still feeds the snippet). include_raw: Include the raw Graph payload under "raw" on each item.
Returns: {"items": [trimmed_chat_message, ...], "next_page_token": str | None}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| team_id | Yes | ||
| channel_id | Yes | ||
| page_token | No | ||
| include_raw | No | ||
| include_body | No |