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}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_selection_bounds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_index | No |