Read a Gmail attachment
read_gmail_attachmentOpen one attachment of a Gmail message and return what is in it. Text, CSV, JSON, HTML and code files come back as themselves; images come back as pictures the assistant can look at (a large photo, or a HEIC or TIFF, is scaled down to a JPEG; images up to 25 MB); a PDF comes back whole as a document (an embedded application/pdf resource) for the assistant to read. Word documents (.docx) come back as their text. Spreadsheets can't be read here — but any attachment can be saved as-is with save_gmail_attachment_to_drive. Other attachments up to 10 MB. Get attachmentId from get_gmail_message or get_gmail_thread.
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": {
"mailbox": "<mailbox>",
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "read_gmail_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Email address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| messageId | Yes | ||
| attachmentId | Yes |