Get Gmail thread
gmail_get_threadFetch a full Gmail thread by ID, returning every message with headers, body text, and attachment metadata.
Instructions
Fetch a full thread — every message with normalized headers and body text.
Args:
thread_id (string, required): from gmail_search_threads. Thread ids are ACCOUNT-SPECIFIC — pass the same 'account' the id came from.
account (string, optional): email or alias. Omit for the default account.
response_format: 'markdown' (default) or 'json'.
Returns: all messages in the thread (from/to/cc, date, subject, labels, body text, attachment metadata). Long threads are truncated to fit the response limit, with a note saying how many messages were shown; use gmail_get_message for a specific message's full content.
Examples:
{"thread_id": "18c2f5a7b3d9e1f0"}
{"thread_id": "18c2f5a7b3d9e1f0", "account": "work", "response_format": "json"}
Error Handling: a 404 usually means the id belongs to a DIFFERENT account — check the 'account' field on the search result that produced the id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Email or alias of the account to use. Omit to use the default account. Call gmail_list_accounts if unsure. | |
| thread_id | Yes | Gmail thread id (account-specific). | |
| response_format | No | Output format: 'markdown' for compact human-readable rendering (default), 'json' for the full normalized structure. | markdown |