Create image
gimp_create_imageCreate a new GIMP image with defined width, height, fill color, layer name, base type, and optional resolution; use transparent fill for an alpha layer.
Instructions
Create a new image with a single layer named layer_name filled with an explicit color (default white; 'transparent' gives an alpha layer). Like a new image in GIMP's UI, it starts without unsaved changes and without undo history. Shown in a window when GIMP has a UI.
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": {
"width": "<width>",
"height": "<height>"
},
"name": "gimp_create_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | sRGB color as '#rrggbb', '#rrggbbaa', '#rgb' or one of: white, black, red, green, blue, transparent | white |
| width | Yes | Pixels. | |
| height | Yes | Pixels. | |
| base_type | No | rgb | |
| layer_name | No | Background | |
| resolution | No | Pixels per inch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| file | Yes | ||
| name | Yes | GIMP's display name (may be localized). | |
| dirty | Yes | ||
| width | Yes | ||
| height | Yes | ||
| xcf_file | Yes | ||
| displayed | Yes | True when a GIMP window shows the image (GUI sessions only). | |
| layer_count | Yes | Number of top-level layers. |