get_thread
Retrieves an email thread with all its messages in chronological order across inbox, sent, and user folders, rebuilding conversations from Message-ID and References headers and omitting drafts.
Instructions
Retrieves an email thread (conversation) with all its messages, oldest first, across folders (inbox, sent, user folders). Drafts are omitted. Threads are reconstructed from Message-ID/References headers. Use PLAIN_TEXT to save context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes | Thread id from search_threads. | |
| messageFormat | No | MINIMAL: subject, snippet, sender, recipients, date, labels. METADATA_ONLY: no subject/snippet/body. PLAIN_TEXT (recommended): MINIMAL + plaintextBody + attachments (HTML converted to text if needed). FULL_CONTENT (default): also htmlBody. RAW: raw MIME. |