gmail_get_thread
Fetch an entire Gmail thread by thread ID, returning all messages oldest first with decoded text bodies for reading complete conversations.
Instructions
Fetch a whole Gmail thread, oldest message first.
Uses ADC credentials and sends the mandatory quota-project header.
Args:
thread_id: The Gmail thread id (the threadId of any of its messages).
format: "text" (default) decodes every message like gmail_get_message.
The bodies share a 100,000-character budget, newest message first;
older messages past it keep their headers, get body: null, and
their ids are listed in omittedBodies for gmail_get_message.
"metadata", "minimal" and "full" return the raw Gmail resources,
up to 1 MB for the whole thread.
Returns:
A JSON object {id, messages: [...]}, plus omittedBodies when the
"text" format dropped any body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | text | |
| thread_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |