get_recent_messages
Retrieve recent Microsoft Teams messages with filters for time, scope, users, attachments, importance, and keywords to find specific conversations.
Instructions
Get recent messages from across Teams with advanced filtering options. Can filter by time range, scope (channels vs chats), teams, channels, and users.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Get messages from the last N hours (max 168 = 1 week) | |
| limit | No | Maximum number of messages to return | |
| mentionsUser | No | Filter messages that mention this user ID | |
| fromUser | No | Filter messages from this user ID | |
| hasAttachments | No | Filter messages with attachments | |
| importance | No | Filter by message importance | |
| includeChannels | No | Include channel messages | |
| includeChats | No | Include chat messages | |
| teamIds | No | Specific team IDs to search in | |
| keywords | No | Keywords to search for in message content |