Search messages
searchSearch all Microsoft Teams messages with full-text queries or browse by filters including sender, conversation, date range, and attachments.
Instructions
Full-text search across all messages with filters. Empty query = filtered browse. from/in accept display-name / title substrings or handles. mentions_me finds messages that @mention you. Note: this reads the LOCAL Teams cache — history is the synced slice on this device, not the full server archive.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in | No | conversation: title substring or c:handle | |
| from | No | sender: display-name substring or p:handle | |
| kind | No | ||
| limit | No | default 20 | |
| query | No | FTS query; omit to browse by filters only | |
| since | No | ||
| until | No | ||
| exclude | No | c:/p: handles to exclude from results | |
| mentions_me | No | ||
| has_attachment | No |