list-messages
Browse recent mailbox messages with optional sender and unread filters and limit/offset pagination; returns message IDs and summary details for follow-up read, move, or delete actions.
Instructions
Use when: browsing a mailbox's recent messages (optionally filtered by sender or unread-only) with pagination via limit/offset, and you need their ids. Returns: messages with id, date, subject, sender, mailbox and account (each text line names its mailbox and account when the results can come from more than one), and flagColor when flagged with an explicit color (plus partial-coverage diagnostics when some mailboxes were skipped). Do not use when: you have specific search criteria like subject/date/flags/flag color (use search-messages, which also supports filtering by flagColor) or already have an id and want the body (use get-message). Like search-messages, use this to obtain the ids that read/mark/delete/move and batch tools require.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Filter by sender email address or name | |
| limit | No | Maximum number of messages (default: 50, max: 500) | |
| offset | No | Number of messages to skip (for pagination) | |
| account | No | Account to list messages from | |
| mailbox | No | Mailbox to list messages from. Omit to list from all mailboxes. | |
| unreadOnly | No | Only show unread messages |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| backend | No | ||
| partial | No | ||
| messages | No | ||
| stoppedBy | No | ||
| failedMailboxes | No | ||
| omittedMessages | No | ||
| backendByAccount | No | ||
| timedOutAccounts | No | ||
| timedOutMailboxes | No | ||
| failedMailboxReasons | No | ||
| notSearchedMailboxes | No | ||
| skippedLargeMailboxes | No |