modify_selection
Adjust the current selection by growing, shrinking, feathering, adding a border, or sharpening its edges for precise image editing.
Instructions
Grow, shrink, feather, border, or sharpen the current selection.
Parameters:
operation: "grow", "shrink", "feather", "border", "sharpen"
amount: Pixel radius for grow/shrink/feather/border; ignored for sharpen
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": {
"operation": "<operation>",
"amount": "<amount>"
},
"name": "modify_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| operation | Yes | ||
| image_index | No |