Krita Modify Selection
krita_modify_selectionModify current selection in Krita: invert, feather, grow, shrink, smooth, erode, dilate, or border. Adjust radii and edge lock for precise control.
Instructions
Modify the current selection: invert | feather(radius) | grow(x_radius,y_radius) | shrink(x_radius,y_radius,edge_lock) | smooth | erode | dilate | border(x_radius,y_radius).
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": {
"op": "<op>"
},
"name": "krita_modify_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| radius | No | ||
| x_radius | No | ||
| y_radius | No | ||
| edge_lock | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||