Make thumbnails
image_thumbnailsCall this tool to write one thumbnail per input into out_dir as -thumb., fit inside size by size, aspect kept. Paths are reserved before writing, so a collision leaves nothing half-done. Free: 5/call, 4 MP.
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": {
"paths": "<paths>",
"out_dir": "<out_dir>"
},
"name": "image_thumbnails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Longest side of the thumbnail in pixels, default 256 | |
| paths | Yes | Names of images uploaded with image_upload | |
| out_dir | Yes | Not a directory here: every output comes back as its own download link valid for one hour. Any value is accepted and ignored | |
| overwrite | No | Replace out_path if it already exists. Default false. Never allows an output to be one of the inputs |