import_spritesheet
Slice a sheet PNG into animation frames by reading row-major cells at a specified frame size, placing them on an imported layer and adding frames as needed.
Instructions
Slice a sheet PNG into animation frames: cells are read row-major at
the given frame size onto a new "imported" layer, adding frames as
needed. The sheet's dimensions must be exact multiples of the frame
size. One undo step. Headless: pass file (the target sprite).
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": {
"sheet_path": "<sheet_path>",
"frame_width": "<frame_width>",
"frame_height": "<frame_height>"
},
"name": "import_spritesheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| sheet_path | Yes | ||
| frame_width | Yes | ||
| frame_height | Yes |