View Image
view_image · Tools · Search
Shows the agent an image from a public URL or the workspace.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
source | object | object | Yes | The one image to look at: a public URL, or an image stored in this workspace. |
View Image Tool#
view_image shows the agent an image. The agent sees it right after the call's result and on later turns while the stored image is still available.
When to Use#
An agent uses it to look at a picture it has a reference to: an image URL found while reading a page, or an image already stored in the workspace, such as an attachment, by its object id.
Parameters#
One parameter, source, names the image. Its kind says which of the two it is.
| Parameter | Type | Required | Description |
|---|---|---|---|
source |
object | Yes | {"kind": "url", "url": ...} or {"kind": "object", "object_id": ...} |
kind |
Field | Description |
|---|---|---|
url |
url |
The http or https URL of an image on the public internet |
object |
object_id |
The id of an image stored in this workspace |
Returns#
The result the model reads is the sentence Content visible as user message. The image itself follows in a user message after the batch's tool results.
Notes#
- PNG, JPEG, GIF and WebP up to 5 MB are shown; anything else is refused. An image from the web is judged by its bytes, not by the type the server claims.
- A URL is fetched with the same public-addresses-only guard as
web_fetch. The fetched image is kept privately in the workspace for 7 days, outside the Library. Viewing an existing object does not change its retention. - Retry, set on the Web reading tool group, sends a URL's fetch again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see Retries. The fetch is a
GET, a read, so it is sent again freely. - The image message is recorded in the transcript as a system event, so a later turn replays it like any other message.
- Risk: read.