draw_image_base64
Composite a base64-encoded PNG or image onto a sprite layer at given coordinates, letting you paste externally generated artwork directly into Aseprite files.
Instructions
Composite an inline base64-encoded PNG (or other image) onto a layer at (x, y).
Useful for pasting externally generated artwork. `image_base64` may include a
`data:image/png;base64,` prefix. The decoded image is capped at 32 MB; for
anything larger, write the file into the workspace and use `stamp_file`.
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>",
"image_base64": "<image_base64>",
"x": "<x>",
"y": "<y>"
},
"name": "draw_image_base64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| frame | No | Default: 1. | |
| layer | No | ||
| opacity | No | Default: 255. | |
| filename | Yes | ||
| blend_mode | No | Default: "normal". | normal |
| image_base64 | Yes |