Close image
gimp_close_imageCloses an image and invalidates its ID; refuses unsaved changes unless discard_changes is true.
Instructions
Close an image. Refused with UNSAVED_CHANGES when it has unsaved changes, unless discard_changes=true. Its id (and its items' ids) become invalid.
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_close_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. | |
| discard_changes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| closed | Yes |