Search My Mail
mail_search_messagesSearch Microsoft 365 mail by keywords or KQL filters like sender, subject, or attachments, across all folders or a specified folder.
Instructions
Search mail by keywords with KQL, for example "budget", "from:Zhang Wei", "subject:review", "hasAttachments:true". Searches all folders unless folder is set. Requires delegated Mail.Read. Chinese intents / 中文意图: 搜索邮件, 按关键词查邮件, 查找某人发的邮件, 查找某封邮件.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Messages to return, from 1 to 50. Defaults to 20. | |
| query | Yes | Keywords or KQL such as from:, to:, subject:, body:, hasAttachments:. | |
| cursor | No | nextCursor from the previous call. | |
| folder | No | Limit to a folder such as inbox; defaults to all folders. |