edit_in_selection
Restrict Aseprite edits to the current selection, applying all steps as one undo and reverting any changes made outside the selected area.
Instructions
"Fix this bit": run editing tools so they change only what's inside the current
selection, as one undo step. Anything they'd do outside it, on any layer or frame,
is put back. Steps are written as in edit_batch. Select the area in Aseprite
first; look with selection shows what's selected. Steps can't change the
frames, layers, or canvas size. Headless: pass file here, not in the steps.
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": {
"steps": "<steps>"
},
"name": "edit_in_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| label | No | AI edits in selection | |
| steps | Yes |