crop
Destructive
Crop the canvas to an explicit rectangle (left, top, width, height in photo pixels). This is not a scale (use resize). IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt. Every live filter, mask channel and the filter record survive a crop; it is the one geometry change that never refuses because of masked filters.
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": {
"image": "<image>",
"left": "<left>",
"top": "<top>",
"width": "<width>",
"height": "<height>"
},
"name": "crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | Top edge of the new canvas, in document pixels. | |
| left | Yes | Left edge of the new canvas, in document pixels. | |
| image | Yes | Image id, as returned by open_photo. | |
| width | Yes | New canvas width, in pixels. | |
| height | Yes | New canvas height, in pixels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| mindset_notes | No |