list_emails
List email messages from a folder, newest first, with pagination and summaries of sender, subject, date, and flags. Limit results, skip newest messages, or show only unread.
Instructions
List messages in a folder, newest first, with pagination. Returns envelope summaries (subject, sender, date, flags) and the folder's uidvalidity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | max messages to return (default 20, max 100) | |
| folder | Yes | folder name, as returned by list_folders | |
| offset | No | newest messages to skip, for pagination | |
| unread_only | No | only return unread messages |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | total messages matching, before pagination | |
| emails | Yes | newest first | |
| folder | Yes | ||
| returned | Yes | ||
| uidvalidity | Yes | folder generation; pass to get_email and attachment tools together with uid |