document_crop
Crop an image to a bounded rectangle in canvas pixels by setting x, y, width, and height. Use it to trim canvas areas precisely within a GIMP session.
Instructions
Crop the image to a bounded rectangle in canvas pixels.
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": {
"session_id": "<session_id>",
"width": "<width>",
"height": "<height>"
},
"name": "document_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| width | Yes | ||
| height | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||