teams_search_messages
Microsoft Teams · macOS · Windows
Effect: read (strongest supported action). Status: gated.
Gated means the tool requires an installed app, a connected account, permission, or runtime availability. Check those requirements on the listed platform before using it.
macOS
Purpose
Searches the Microsoft Teams chat and channel messages of a Microsoft 365 account with Microsoft Search: by text, and optionally by sender and date range. Use it to find where something was discussed without knowing the chat. Results come in Microsoft's relevance order (not newest first), and body is a snippet around the match, not the whole message; read the chat with teams_read_chat_messages for the rest. Returns at most 100 results from at most 4 pages of the search. When the read is cut (by that bound, or because the call ran out of time) the answer has truncated: true. Needs a work or school Microsoft 365 account connected with connect_m365_account (personal Microsoft accounts have no Teams reads).
Required inputs
No required inputs are declared in this platform's schema. Optional selectors and runtime requirements may still apply.
Permissions and confirmation
No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — macOS
{
"properties": {
"account": {
"description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
"type": "string"
},
"from_sender": {
"description": "Only messages from this sender (name or email; optional)",
"type": "string"
},
"limit": {
"description": "Max results (default 25, max 100)",
"type": "integer"
},
"query": {
"description": "Text to search for",
"type": "string"
},
"since": {
"description": "Only messages on/after this date, YYYY-MM-DD (optional)",
"type": "string"
},
"until": {
"description": "Only messages on/before this date, YYYY-MM-DD (optional)",
"type": "string"
}
},
"required": [],
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"limit": 5,
"query": "launch checklist"
}Windows
Purpose
Searches 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 (most relevant first), each with a snippet and the chat they came from. Returns at most 100 results from at most 4 pages of the search. When the read is cut (by that bound, or because the call ran out of time) the answer has truncated: true.
Required inputs
No required inputs are declared in this platform's schema. Optional selectors and runtime requirements may still apply.
Permissions and confirmation
No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.
- Use only the apps, accounts and resources authorized by the user on this platform. Consult this tool's platform-specific description for its connection and permission requirements; this catalog does not assert additional OAuth scopes or OS entitlements.
Full input schema — Windows
{
"properties": {
"account": {
"description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
"type": "string"
},
"from_sender": {
"description": "Filter to a sender by name (optional)",
"type": "string"
},
"limit": {
"description": "Max results (default 25, max 100)",
"type": "integer"
},
"query": {
"description": "Text to find in messages",
"type": "string"
},
"since": {
"description": "Only messages on/after this date, YYYY-MM-DD (optional)",
"type": "string"
},
"until": {
"description": "Only messages on/before this date, YYYY-MM-DD (optional)",
"type": "string"
}
},
"type": "object"
}Documentation example
Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.
{
"limit": 5,
"query": "launch checklist"
}