# 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`: The `text` field contains up to 100,000 characters, with a `note` if the text was cut.
- `not_viewable`: A `reason` and `note` explain 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.
