List email messages
list_messagesRetrieve emails from any folder, defaulting to inbox, with optional date-range and read/unread filters, sorted newest first.
Instructions
List messages from a mail folder (default: inbox), newest first by default. Supports date-range and read/unread filtering. Use list_folders first if you need a folder ID other than a well-known name like 'inbox', 'drafts', 'sentitems', 'archive', or 'junkemail'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max messages to return (default 25, max 100). | |
| skip | No | Pagination offset. | |
| since | No | ISO 8601 date-time; only messages received on/after this. | |
| until | No | ISO 8601 date-time; only messages received on/before this. | |
| folder | No | Well-known folder name (inbox, drafts, sentitems, deleteditems, archive, junkemail, outbox) or a folder ID. Defaults to inbox. | |
| orderBy | No | Field to sort by (default receivedDateTime). | |
| unreadOnly | No | If true, only unread messages. If false, only read ones. | |
| orderDirection | No | Sort direction (default desc, i.e. newest first). |