add_layer
Add a new layer to a sprite file. Specify layer name, optionally create a group layer, and set save path.
Instructions
Add a new layer to a 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": {
"filePath": "<filePath>",
"layerName": "<layerName>"
},
"name": "add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Sprite file | |
| layerName | Yes | Name for the new layer | |
| isGroup | No | Create a group layer instead of image layer | |
| savePath | No | Path to save |