crop_square
Crop any image to the largest possible square, choosing which part of the frame to keep with an anchor option (center, top, bottom, left, right, or corner).
Instructions
Crop to the largest possible square.
anchor picks which part of the frame to keep: center (default), top, bottom, left, right, or a corner such as topleft.
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": "crop_square"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | No | center | |
| backend | No | ||
| quality | No | ||
| input_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |