paint_with_stamp
Stamps a PNG or cropped sprite region at multiple x,y points in one undoable Aseprite edit; optionally preview changed pixels and bounding box before committing.
Instructions
Stamp an image at each [x, y] in points (points are stamp centers).
The stamp comes from source_path (a PNG) or source_rect
([x, y, width, height] cut from the composited sprite). One undo step
for the whole scatter. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
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": {
"points": "<points>"
},
"name": "paint_with_stamp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| layer | No | ||
| points | Yes | ||
| preview | No | ||
| source_path | No | ||
| source_rect | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |