import_image
Imports PNG, JPG, or GIF images as .aseprite files, with nearest-neighbor resizing and palette snapping or color quantization for pixel-art preparation.
Instructions
Import a PNG, JPG or GIF as an .aseprite file.
Resizes with nearest-neighbor sampling (give only width or height to keep the aspect
ratio), then snaps to a fixed palette (colors) or quantizes to max_colors.
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": {
"src": "<src>",
"out_path": "<out_path>"
},
"name": "import_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | Yes | ||
| width | No | ||
| colors | No | ||
| height | No | ||
| out_path | Yes | ||
| dithering | No | none | |
| max_colors | No |