thumbnail
Create a downscaled preview with a maximum side length, writing to a new file while leaving the source untouched. Ideal for contact sheets or small previews.
Instructions
Create a downscaled preview whose longest side is at most 'size' pixels (aspect ratio preserved), writing it to a NEW file (source unchanged). Ideal for generating small previews or contact sheets. Returns the output path and the max-side constraint applied.
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": {
"path": "<path>",
"out": "<out>",
"size": "<size>"
},
"name": "thumbnail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Output image path. A new file is created; the source is left untouched. | |
| path | Yes | Source image path. | |
| size | Yes | Maximum length, in pixels, of the longest side of the thumbnail. |