Gmail Get Thread
gmail_get_threadRetrieves a Gmail conversation by thread ID, returning the newest cleaned message with earlier-message summaries or raw thread data in full, metadata, or minimal formats.
Instructions
Read one Gmail conversation by thread ID. The default format 'clean' gives the newest message with its cleaned body plus a one-line summary of each earlier message; 'full', 'metadata' and 'minimal' return Gmail's raw thread resource instead. Use gmail_read_emails to read particular messages in full or continue a truncated body, and gmail_search_emails (group_by_thread=true lists conversations) to find threads. Returns thread_id, count (messages in the thread) and either latest, prior_messages and account_timezone ('clean') or thread (the other formats, whose historyId is Gmail's).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"thread_id": "<thread_id>"
},
"name": "gmail_get_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'clean' (default): latest is the newest message's summary plus its cleaned body text, paged at about 8,000 characters (continue with gmail_read_emails and offset=next_offset), and prior_messages gives from, date, subject and snippet of each earlier message. The others return Gmail's raw thread resource under thread: 'full' with every message's headers and base64url-encoded body parts, 'metadata' with headers only, 'minimal' with IDs and labels only. | clean |
| thread_id | Yes | Gmail thread ID, from the thread_id field of Gmail search, digest and read results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| latest | No | ||
| thread | No | ||
| has_more | No | Whether another page is available. | |
| thread_id | No | ||
| fetched_at | No | RFC3339 time when this response was fetched. | |
| prior_messages | No | ||
| next_page_token | No | Opaque token for the next page, or null. | |
| account_timezone | No |