get_email_thread
Fetch an entire email thread from a specified Gmail account, showing each message with attachment metadata. To read attachment content, use get_all_attachments with the Gmail ID provided.
Instructions
Get a full email thread for one account (account required). Each message lists attachment metadata (filename, attachment_id, size). To read attachment content — PDF text, DOCX, XLSX, images via OCR — call get_all_attachments with the Gmail message ID shown as "Gmail ID" in each message.
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": {
"account": "<account>",
"thread_id": "<thread_id>"
},
"name": "get_email_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id. | |
| thread_id | Yes | Gmail thread id. |