Get selection
gimp_get_selectionChecks whether an image has an active selection, returns its bounds, and optionally tests whether a specified point lies inside the selection.
Instructions
Whether the image has a selection, its bounds, and optionally whether a point is selected.
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_get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. | |
| probe_x | No | ||
| probe_y | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| empty | Yes | ||
| image | Yes | ||
| bounds | Yes | Bounding box of the selection, clipped to the canvas; null when empty. | |
| contains | No | Whether (probe_x, probe_y) is selected (> 50%), when a probe point was given. |