# View Resource Tool

`<handle>__view_resource` opens a file for the agent to inspect in the conversation.

## When to Use

Open a resource link returned by a connected app. Verdalia provides the tool when the app declares support for resources and does not already offer a tool with the same callable name.

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uri` | string | Yes | The `uri` from the app’s `resource_link` result block |

## Returns

The result includes `uri` 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 viewer opens the first content returned by the app. MCP responses larger than 16 MiB, including encoded file data, fail before the viewer can open them.

Verdalia keeps shown files privately for 7 days without making a Library item or a share link.
