View Gmail Attachment
GmailViewAttachmentTool · Tools · Connections
Open one Gmail message attachment using its email_id (the message id) and the attachment_id listed by gmail_get_email, gmail_get_thread or gmail_get_draft. A PDF or an image (PNG, JPEG, GIF or WebP up to 5 MB) is shown to you in a message right after this call's result; a text file returns its text, cut at 100,000 characters. Anything else, and any file over 50 MB, returns the file's details and says it can't be displayed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
attachment_id | string | Yes | The stable attachment id listed by the reading tool for this message. |
email_id | string | Yes | The id of the message holding the file, including the message inside a draft or thread. |
View Gmail Attachment Tool#
gmail_view_attachment opens a file for the agent to inspect in the conversation.
When to Use#
Open a Gmail attachment listed by gmail_get_email, gmail_get_thread or gmail_get_draft. Use the containing message’s id even when the message came from a thread or draft.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
email_id |
string | Yes | The Gmail message id |
attachment_id |
string | Yes | The id from the message’s attachments list |
Returns#
The result includes email_id alongside the file’s details in attachment and one of three view values:
shown: A PDF or an image (PNG, JPEG, GIF or WebP up to 5 MB) follows the tool results in the conversation.text: Thetextfield contains up to 100,000 characters, with anoteif the text was cut.not_viewable: Areasonandnoteexplain why the file cannot be displayed. This includes unsupported formats or files over 50 MB.
Notes#
The selection switch is view_attachment. Viewing uses the selected Gmail connection’s read access.
Verdalia keeps shown files privately for 7 days without making a Library item or a share link.