Create Layer
create_layerCreate a new layer at the document root, or update an existing layer by name, with configurable RGB color and flags such as solo, view, locked, and render.
Instructions
Create a LayerObject at the document's layer root. With update_if_exists:true the existing layer with the same name is updated in place (idempotent). Pass color:[r,g,b] (0..1) and/or flags:{solo,view,render,manager,locked,...} to configure it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Layer display name (also used for lookup). | |
| color | No | [r,g,b] in 0..1. | |
| flags | No | Initial flag values. | |
| update_if_exists | No | Idempotent update. Default false. |