modify_selection
Expand, contract, or outline the current selection by a pixel amount to isolate edges for outlines or contact shadows in Aseprite sprites.
Instructions
Grow, shrink, or outline the current selection.
Args:
op: "expand" grows by `quantity` pixels, "contract" shrinks, "border" replaces
the selection with a band of that width around its edge. A border selection
is how you scope an outline or a contact shadow to where two forms meet.
quantity: How many pixels, at least 1.
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": {
"filename": "<filename>",
"op": "<op>"
},
"name": "modify_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| filename | Yes | ||
| quantity | No | Default: 1. |