Get Messages
getMessagesRead multiple emails in a single call instead of repeating single-message reads. Fetch parsed bodies, raw sources, or headers-only plus flags, with per-message errors that keep the rest returning.
Instructions
Read up to 10 messages in one call, each as getMessage returns it, or only headers and flags with headersOnly (up to 200): use it instead of repeated getMessage calls. Returns { messages, requested, succeeded, failed }: an unreadable message gets an error entry, the others still come back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | Messages to read, max 10 (200 with headersOnly). | |
| rawSource | No | Return each raw RFC 2822 source (decoded text, rawCharset) instead of parsed fields | |
| bodyFormat | No | 'markdown' (default), 'text' or 'html', for all messages | |
| headersOnly | No | Headers as received (From, To, Cc, Subject, Date, Message-ID, References, List-*), flags, no body; unsubscribe parsed (sender-set: user decides) | |
| rawEncoding | No | With rawSource: 'base64' returns the exact bytes instead of decoded text | text |
| maxBodyChars | No | Max body characters per message; read the rest with getMessage bodyOffset | |
| saveAttachments | No | Save the attachments of each message to disk, with filePath (default: false) |