action microsoft_list_chat_messages { label: "List chat messages" description: "List messages in a Microsoft Teams chat, newest first." provider: microsoft method: GET path: "/v1.0/chats/{chat_id}/messages" scopes: ["Chat.ReadWrite"] input: @json { { "type": "object", "required": ["chat_id"], "additionalProperties": false, "properties": { "chat_id": { "type": "string", "description": "Chat id." }, "$top": { "type": "integer", "description": "Maximum number of messages to return (max 50)." } } } } output: @json { { "type": "object", "additionalProperties": true, "properties": { "value": { "type": "array", "items": { "type": "object", "additionalProperties": true, "properties": { "id": { "type": "string" }, "from": { "type": "object" }, "body": { "type": "object" }, "createdDateTime": { "type": "string" } } } }, "@odata.nextLink": { "type": "string" } } } } }