list_emails
Retrieve emails from a specified mailbox or all mailboxes. Set a maximum number of results and choose to sort oldest first. Returns a total count when available.
Instructions
List emails from a mailbox. When the server reports a total match count, results are wrapped in a {"total", "items"} JSON envelope; otherwise a bare JSON array is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of emails to return (default: 20) | |
| ascending | No | Sort oldest first instead of newest first (default: false) | |
| mailboxId | No | ID of the mailbox to list emails from (optional, defaults to all) |