End undo group
gimp_end_undo_groupCloses the innermost undo group this client opened on a specified GIMP image, returning NO_OPEN_GROUP if no matching group is open.
Instructions
Close the innermost undo group this client opened on the image (NO_OPEN_GROUP otherwise).
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>"
},
"name": "gimp_end_undo_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | Yes | Undo groups this client still has open on the image (0 = none). | |
| image | Yes |