set_cel
Set a cel's position, opacity, or z-index on specific frames, optionally creating missing cels and copying linked ones first so other frames stay unchanged.
Instructions
Set the position, opacity and/or z-index of a layer's cels in the given frames.
The position is the sprite coordinate of the cel image's top-left corner; an axis left out keeps its value. A frame without a cel is an error unless create is true, which adds an empty cel at (0, 0) first. Linked cels get their own copy before they move or fade, so frames outside the list never change. 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": "set_cel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Cel left edge in sprite pixels | |
| y | No | Cel top edge in sprite pixels | |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | Yes | Layer name, or a 'group/child' path for nested layers | |
| create | No | Create an empty cel where the layer has none | |
| frames | Yes | Frames: a number, "1-4", "1-4,7" or "all" (1-based) | |
| opacity | No | Cel opacity, 0..255 | |
| z_index | No | Draw order offset against other layers' cels | |
| relative | No | Move by x/y instead of moving to x/y |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||