crop_image_to_square
Crop any image to a 1:1 square using center crop, then resize to 1024x1024 and export as high-res WebP.
Instructions
Crop image to 1:1 square using center crop. Uses the shorter edge as crop size, then scales to 1024x1024. Fast, lossless operation without AI. Outputs high-res WebP.
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>"
},
"name": "crop_image_to_square"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Local file path or URL to the image to crop (e.g., '/path/to/image.jpg' or 'https://example.com/image.jpg') |