image_thumbnail
Create a thumbnail that fits within a square of a specified size while preserving the original aspect ratio.
Instructions
Make a thumbnail that fits inside a square of the given size, keeping the aspect ratio.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "image_thumbnail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| format | Yes | ||
| height | Yes | ||
| output_path | Yes | ||
| output_bytes | Yes | ||
| max_dimension | Yes | ||
| original_size | Yes |