Teams Search Messages
teams_search_messagesSearches your Microsoft Teams chat and direct-message history (all conversations at once) by text, sender name, and/or date range. Use this to find where something was discussed in Teams without knowing which chat. Returns matching messages with the chat they came from. Provide at least one of query, from_sender, since, until.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results, newest first (default 50, max 200) | |
| query | No | Text to find in message bodies (case-insensitive substring) | |
| since | No | Only messages on/after this date, YYYY-MM-DD (optional) | |
| until | No | Only messages on/before this date, YYYY-MM-DD (optional) | |
| from_sender | No | Filter to a sender by display-name substring (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| error | No | ||
| messages | No |