autocad_delete_layer
Delete a named layer from a CAD drawing; removal is blocked if it contains entities or is the '0'/'Defpoints' layer.
Instructions
Delete a layer. Fails if the layer still has entities on it, or is '0'/'Defpoints'.
Args: params (DeleteLayerInput): - name (str): layer to delete.
Returns: str: JSON {"status": "deleted", "name"}.
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": {
"params": "<params>"
},
"name": "autocad_delete_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |