List messages
list_messagesList email headers from any mailbox, newest first, with pagination and unread filter, enabling quick scanning of messages before fetching full content.
Instructions
Lists the messages of a mailbox, newest first by the date the sender wrote, which also holds across pages. Returns headers only: sender, subject, date, size and the message id. It never returns message bodies, because a single message averages around 16000 tokens raw. Use get_message with an id to read one. Ordering reads one date per message in the mailbox, so a very large mailbox takes a moment; the answer says so when it does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many messages to return, at most 100. | |
| offset | No | How many of the newest messages to skip. Used for paging. | |
| mailbox | No | The mailbox path, for example "INBOX", "Archive" or "Folders/Work". Use list_folders to see them. | INBOX |
| unreadOnly | No | When true, only unread messages are listed. |