gimp_select
Select image areas using rectangle, ellipse, color, alpha, or item; combine with add, subtract, intersect, or refine using grow, shrink, feather, border. Returns bounds.
Instructions
Selection in one tool. mode: rect, ellipse (x,y,width,height), color (color, threshold 0..1, layer_id), alpha (layer_id: select the layer's opaque pixels), item (item_id: path or channel), all, none, invert, grow/shrink/feather/border (amount), bounds (just report). op: replace, add, subtract, intersect. Returns the selection bounds.
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_id": "<image_id>"
},
"name": "gimp_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| op | No | replace | |
| mode | No | bounds | |
| color | No | ||
| width | No | ||
| amount | No | ||
| height | No | ||
| item_id | No | ||
| image_id | Yes | ||
| layer_id | No | ||
| threshold | No | ||
| sample_merged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||