Get Gmail Thread Content
get_gmail_thread_contentRetrieve the complete content of a Gmail conversation thread, including all messages. Optionally analyze ownership to see who sent the last message and who needs to respond.
Instructions
Retrieves the complete content of a Gmail conversation thread, including all messages.
Optionally also returns structured ownership analysis so a caller can determine who sent the last message and who owes whom a response without re-parsing the formatted string or making a second tool call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | The unique ID of the Gmail thread to retrieve. | |
| user_google_email | Yes | The user's Google email address. Required. | |
| body_format | No | Body output format. 'text' (default) returns plaintext (HTML converted to text as fallback). 'html' returns the raw HTML body as-is without conversion. 'raw' fetches each message's full raw MIME content and returns the base64url-decoded body. | text |
| include_analysis | No | When True, the return value is a dict with both the formatted thread content AND structured ownership analysis (last sender, ball-in-court verdict, per-sender message counts, participants). Defaults to False, in which case the existing string return shape is preserved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |