get_selection_bounds
Retrieve the bounding rectangle of the current GIMP selection, returning whether a selection exists plus its x, y, width, and height values.
Instructions
Get the bounding rectangle of the current selection.
Parameters:
image_index: Target image index (default 0)
Returns: {has_selection, x, y, width, height}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_index | No |