select_rectangle
Creates a rectangular selection at specified coordinates and dimensions, with optional feathering and replace/add/subtract/intersect modes for precise image editing.
Instructions
Create a rectangular selection.
Parameters:
x, y: Top-left corner of the selection
width, height: Dimensions of the selection
operation: "replace" (default), "add", "subtract", "intersect"
feather: Feather radius in pixels (default 0 = no feather)
image_index: Target image index (default 0)
Returns status dict.
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": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "select_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| feather | No | ||
| operation | No | replace | |
| image_index | No |