import_image_as_layer
Import a PNG or other image file into a specific layer of an Aseprite sprite. Useful for adding reference images or composing pre-made parts.
Instructions
Import an image file (PNG, etc.) into a layer of the sprite.
Useful for bringing in reference images or composing pre-made parts. The layer is created if it does not exist. Works best when the sprite is in RGB color mode.
Args: filename: Aseprite file to modify image_path: Image file to import layer_name: Layer to place the image on frame_index: Frame index starting at 1 (default 1) x: X position for the image's top-left corner (default 0) y: Y position for the image's top-left corner (default 0)
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_path": "<image_path>",
"layer_name": "<layer_name>"
},
"name": "import_image_as_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| filename | Yes | ||
| image_path | Yes | ||
| layer_name | Yes | ||
| frame_index | No |