list_chat_messages
Retrieve messages from a Microsoft Teams chat, newest first, with pagination and optional time range filters. Use list_chats to get chat_id.
Instructions
List messages in a chat, newest first, a page at a time.
Use list_chats to get the chat_id. Returns {"messages": [...], "next_before": ...}
with up to limit (1-200) messages created after after and before before: ISO
8601 timestamps, both exclusive and optional; one without an offset is read as UTC.
For the next older page call again with before=next_before and the same after;
next_before is null when no older messages are left in that range. Pages come
newest first, so after alone returns the newest messages of the chat, not the
ones right after that time.
Each message has id, sender, createdDateTime and plain-text content, plus
attachments, hostedContents (inline image ids for download_attachment) and mention
entities when present. System messages are left out, so a page can hold fewer
than limit messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| limit | No | ||
| before | No | ||
| chat_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |