Preview Image
preview_imageLoad an image from a URL, base64 data URI, or local path and return it inline so you can inspect a generation result before continuing, with an option to open it in the browser.
Instructions
Load an image and return it inline so you (the agent) and GUI clients can actually see it — useful for inspecting a generation result before continuing. Accepts a public HTTPS URL, an inline base64-encoded data:image URI, or a local file path. Optionally also opens it in the default browser when a display is available. Does not charge the API account.
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": {
"url": "<url>"
},
"name": "preview_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Image to preview: a public HTTPS URL (e.g. a generation output), an inline data:image/<mime>;base64,<payload> URI, or a local file path (absolute, ~, or file://). | |
| open | No | Also open the image in the default browser, if a display is available. Default false. |