teams_search_files
Search files shared in Microsoft Teams chats by name or type, optionally filtered by sender, date, or chat, and return share URLs or conversation and message IDs for downloading.
Instructions
Find files shared in your chats by file name, with the shareUrl or conversation and message ids teams_download_file takes. Personal accounts (Teams free search).
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": "teams_search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | ||
| size | No | ||
| after | No | Only items sent at or after this ISO date/time | |
| limit | No | Same as size | |
| query | Yes | Part of the file name | |
| before | No | Only items sent before this ISO date/time | |
| sender | No | Only items from this person (MRI, email or name) | |
| account | No | Account alias (see teams_accounts). Defaults to the default account. | |
| file_type | No | Extension, e.g. pdf or docx | |
| conversation_id | No | Only files shared in this chat |