layer_duplicate
Duplicate a layer in the project to create a second view onto the same data source. Optionally set a custom name for the clone.
Instructions
Duplicate a layer within the project.
The clone shares the same data source as the original - it's a second
view onto the same data, not a copy of the underlying file. Pass name
to set the clone's name; otherwise QGIS assigns a default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| layer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||