MCP ToolsDesign Layers
design_get_layer
Get full details of a single design layer.
Get full details of a single design layer, including its type, properties, transform, blend settings, and visibility state.
Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
sketchId | string | No | Target sketch ID. Defaults to the currently active sketch. |
layerId | string | Yes | The ID of the layer to retrieve. |
Output Shape
{
"layerId": "layer_f7e2d1",
"name": "Background Circle",
"type": "shape",
"index": 0,
"visible": true,
"locked": false,
"opacity": 0.85,
"blendMode": "multiply",
"properties": {
"shape": "ellipse",
"fill": "#2a4365"
},
"transform": {
"x": 400,
"y": 300,
"width": 500,
"height": 500,
"rotation": 0,
"scaleX": 1,
"scaleY": 1,
"anchorX": 0.5,
"anchorY": 0.5
}
}Side Effects
- None. This is a read-only operation.
Error Cases
| Error | Cause |
|---|---|
SKETCH_NOT_FOUND | The specified sketchId does not exist or no sketch is active. |
LAYER_NOT_FOUND | No layer with the given layerId exists in the sketch. |
Golden Path Example
Request
{
"layerId": "layer_f7e2d1"
}Response
{
"layerId": "layer_f7e2d1",
"name": "Background Circle",
"type": "shape",
"index": 0,
"visible": true,
"locked": false,
"opacity": 0.85,
"blendMode": "multiply",
"properties": {
"shape": "ellipse",
"fill": "#2a4365"
},
"transform": {
"x": 400,
"y": 300,
"width": 500,
"height": 500,
"rotation": 0,
"scaleX": 1,
"scaleY": 1,
"anchorX": 0.5,
"anchorY": 0.5
}
}