search_messages
Search Microsoft Teams messages across chats and channels the signed-in user can see. Returns matching content snippets, senders, timestamps, and web links, newest first.
Instructions
Search Teams messages in all chats and channels the signed-in user can see.
Matches message content, including attachments (Microsoft Search). Returns up to
size hits, newest first, with no further pages. Each hit has a snippet
(summary, not the full body), sender name and email, timestamp, chatId or
channelIdentity, and a webLink. Message ids are not returned - to reply to, react
to or delete a hit, find it with list_chat_messages or list_channel_messages.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |