Preview image
gimp_previewRenders the visible composite of a GIMP image as a PNG preview capped to a chosen maximum side length, preserving proportions without altering the document or undo history.
Instructions
Render the composite of an image (all visible layers, with transparency) as a PNG whose longest side is at most max_size pixels (16-1024, default 512 or $GIMP_MCP_PREVIEW_MAX_SIZE). Proportions are kept and the image is never upscaled. Does not modify the document, its undo history or its saved state.
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": "gimp_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. | |
| max_size | No | Longest side of the preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Size of the PNG payload. | |
| image | Yes | ||
| scale | Yes | Preview pixels per image pixel (<= 1). | |
| width | Yes | Preview width in pixels. | |
| height | Yes | ||
| mime_type | No | image/png | |
| source_width | Yes | Image width in pixels. | |
| source_height | Yes | ||
| downscaled_for_size | Yes | True when the preview was made smaller than requested to respect the byte limit. |