Read chat messages
teams_get_chat_messagesRetrieve recent messages from a Microsoft Teams 1:1 or group chat, sorted newest first. Specify chat ID and optional limit for up to 50 messages.
Instructions
Read recent messages from a 1:1 or group chat, newest first.
Args:
chat_id (string): the chat ID (from teams_list_chats)
limit (number, 1-50): max messages (default 20)
response_format ('markdown' | 'json'): output format (default markdown)
Returns: JSON { count, messages: [{ id, from, createdDateTime, text, webUrl }] }.
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": "teams_get_chat_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return (1-50) | |
| chat_id | Yes | The chat (1:1 or group) ID (e.g. '19:...@thread.v2'). Get it from teams_list_chats. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |