Save project (XCF)
gimp_save_imageSave an image as a GIMP project (.xcf) while preserving layers, groups, masks, and text; write to the current file or a specified path with overwrite control.
Instructions
Save the image as a GIMP project (.xcf), keeping layers, groups, masks and text. Without path, saves to the image's current XCF file (a normal 'Save'). With a path, an existing file is only replaced when overwrite=true. Marks the image as having no unsaved changes.
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_save_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute .xcf path; default: current XCF file. | |
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. | |
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Size of the written file. | |
| dirty | Yes | ||
| image | Yes | ||
| xcf_file | Yes |