get_recent_messages
Retrieve recent Microsoft Teams messages with filtering by time, users, mentions, attachments, importance, and keywords. Includes options to search channels or chats and specify teams.
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 |
---|---|---|---|
fromUser | No | Filter messages from this user ID | |
hasAttachments | No | Filter messages with attachments | |
hours | No | Get messages from the last N hours (max 168 = 1 week) | |
importance | No | Filter by message importance | |
includeChannels | No | Include channel messages | |
includeChats | No | Include chat messages | |
keywords | No | Keywords to search for in message content | |
limit | No | Maximum number of messages to return | |
mentionsUser | No | Filter messages that mention this user ID | |
teamIds | No | Specific team IDs to search in |