Get email attachment
get_gmail_attachmentOne attachment from a message in the signed-in person's firm mailbox, by message_id and part_id, as base64 (5 MB max). PDF and images unless allow_any_type. Read-only. Sign-in required.
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": {
"message_id": "<message_id>",
"part_id": "<part_id>"
},
"name": "get_gmail_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part_id | Yes | part_id from that message's attachments in get_email_thread. | |
| message_id | Yes | Gmail message id from search_my_email or get_email_thread. | |
| allow_any_type | No | Fetch types other than PDF and images (docx, xlsx...). Defaults to false. |