preview
Render the photo with its live filters applied and return it as a JPEG so you can look at it. It is fast (about a third of a second at 1024 px). Previews are most of the bytes a session returns: prefer get_histogram for a numeric check (did the tone move?) and use this for spatial questions. region renders a full-resolution crop instead of the whole-photo proxy, which is exact for spatial filters rather than approximate.
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": {
"image": "<image>"
},
"name": "preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id, as returned by open_photo. | |
| max_px | No | Long-edge cap for the proxy render, in pixels. | |
| region | No | A rectangle in document pixels: {x, y, width, height}. Must lie entirely within the image — a region partly or fully outside it is refused rather than silently clamped. When given, renders a full-resolution crop of just that region (exact for spatial filters, unlike the default whole-image proxy). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxy | No | ||
| width | No | ||
| height | No |