Open image
gimp_open_imageOpens a local image or XCF file in GIMP as a new image from an absolute path, including PNG, JPEG, WebP, and TIFF formats.
Instructions
Open a local file (XCF or any format GIMP can load: PNG, JPEG, WebP, TIFF...) as a new image. The path must be absolute (~ allowed).
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": {
"path": "<path>"
},
"name": "gimp_open_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the file to open. |
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. |