set_layer
Patch one layer: set name to rename its editor label without changing its ID or image source; move, resize, colour/device or studioPlane depth/pose. Text style accepts outline and shadow (get_text_controls). Text style and emphasis entries accept highlightRadius, highlightPaddingX, highlightPaddingY in font-size units (0..1). Null clears optional effects. A shared hero edit applies atomically.
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": {
"projectId": "<projectId>",
"position": "<position>",
"layerId": "<layerId>",
"patch": "<patch>"
},
"name": "set_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | Fields to merge into that layer, e.g. {"box":{"x":0.1}}. Use null to clear optional fields. | |
| locale | No | Localization to edit. Omit for the project’s main localization. | |
| remove | No | Remove the layer instead of patching it. | |
| layerId | Yes | A layer id from get_project or the template scene. | |
| position | Yes | Which panel to edit. Layers belong to a panel. | |
| projectId | Yes |