Search email messages
search_messagesSearch email content (subject, body, sender, recipients, attachments) ranked by relevance. Optionally restrict to a folder. For structured filters, use list_messages.
Instructions
Full-text search across mail (subject, body, sender, recipients, attachments) using Microsoft Graph's $search, ranked by relevance. Optionally scope the search to one folder. For structured filtering (date ranges, read/unread) without free-text search, prefer list_messages instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max results to return (default 25, max 100). | |
| query | Yes | Free-text search query. | |
| folder | No | Optional well-known folder name or folder ID to restrict the search to. |