genart.dev
MCP ToolsDesign Layers

design_remove_layer

Remove a design layer from the sketch.

Remove a design layer from the sketch. The layer is permanently deleted and cannot be undone through this tool.

Input Schema

ParameterTypeRequiredDescription
sketchIdstringNoTarget sketch ID. Defaults to the currently active sketch.
layerIdstringYesThe ID of the layer to remove.

Output Shape

{
  "layerId": "layer_f7e2d1",
  "name": "Background Circle",
  "removed": true,
  "remainingCount": 2
}

Side Effects

  • The layer is removed from the design composite.
  • Layers above the removed layer shift down by one in z-order.
  • If the removed layer was selected, selection is cleared.

Error Cases

ErrorCause
SKETCH_NOT_FOUNDThe specified sketchId does not exist or no sketch is active.
LAYER_NOT_FOUNDNo layer with the given layerId exists in the sketch.
LAYER_LOCKEDThe layer is locked. Unlock it first with design_lock_layer.

Golden Path Example

Request

{
  "layerId": "layer_f7e2d1"
}

Response

{
  "layerId": "layer_f7e2d1",
  "name": "Background Circle",
  "removed": true,
  "remainingCount": 2
}