List / search email
list_messagesSearch or list email messages by sender, subject, date, or keyword. Returns message metadata including preview, links, and pagination token for more results.
Instructions
Search or list email messages (e.g. to find booking or confirmation emails). Read-only. Returns id, subject, sender, receivedDateTime, webLink, a body preview, and hasAttachments, plus a nextPageToken when more results exist. Use get_message to read a full message body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Sender email address to match. | |
| limit | No | Max results (1-25, default 10). | |
| query | No | Free-text keyword search (maps to Graph $search, KQL-style). | |
| pageToken | No | Opaque token from a previous call's nextPageToken. | |
| receivedAfter | No | Only messages received on/after this ISO 8601 date/time. | |
| receivedBefore | No | Only messages received on/before this ISO 8601 date/time. | |
| subjectContains | No | Text the subject should contain. |