layer_add
Adds a layer to a Construct 2 project layout with configurable index (0 = bottom), opacity, visibility, parallax, and background color. Use it to build layered scenes and control draw order.
Instructions
Add a layer (index 0 = bottom). background_color is "r,g,b".
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": {
"project": "<project>",
"layout": "<layout>",
"name": "<name>"
},
"name": "layer_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| index | No | ||
| layout | Yes | ||
| opacity | No | ||
| project | Yes | ||
| visible | No | ||
| parallax | No | ||
| editor_sync | No | ||
| transparent | No | ||
| background_color | No | 255,255,255 |