clear_cels
Delete a layer's cels in specified frames to clear sprite content, skipping frames without cels and returning the number removed.
Instructions
Delete a layer's cels in the given frames; frames without a cel are skipped.
Linked cels in other frames keep their image. Returns how many cels were removed. The layer must not be locked.
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": {
"path": "<path>",
"layer": "<layer>",
"frames": "<frames>"
},
"name": "clear_cels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | Yes | Layer name, or a 'group/child' path for nested layers | |
| frames | Yes | Frames: a number, "1-4", "1-4,7" or "all" (1-based) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||