Select all / none / invert
gimp_modify_selectionModify a GIMP image selection by selecting the entire canvas, clearing the selection, or inverting it using an image ID and action.
Instructions
'all' selects the whole canvas, 'none' clears the selection, 'invert' inverts it.
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>",
"action": "<action>"
},
"name": "gimp_modify_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. | |
| action | Yes |
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. |