crop
cropTrim an image to a specified rectangle defined by x, y, width, and height. Creates a checkpoint before cropping to preserve original data.
Instructions
Crop to rect [x, y, w, h]. Checkpoints first.
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": {
"id": "<id>",
"rect": "<rect>"
},
"name": "crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| rect | Yes | ||
| checkpoint | No | Write an .xisf checkpoint before running (default true) |