pixel_import
Import native-resolution PNG pixel art or sprite sheets as editable recipes without altering pixels; slice by atlas or frame and save as a revision.
Instructions
Turn existing pixel art or a sprite sheet PNG into an editable recipe. Import a native-resolution PNG (RGB, RGBA, greyscale or indexed, up to 8 bits per channel; a sprite sheet sliced by its unscaled atlas, or by frame, the size of one frame) as an editable recipe without changing any pixel. Pass data (base64 PNG) or path (inside the server root). Saves the recipe as a revision.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pixel_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Base64 PNG bytes. | |
| name | No | ||
| path | No | PNG file path relative to the server root. | |
| atlas | No | ||
| frame | No | A sheet with no atlas: the size of one frame, such as "24x24". | |
| padding | No | With frame: the empty border round each frame; found when left out. |