layer_create
Create a new AutoCAD layer with a specified color index; existing layer names are refused and the active layer remains unchanged.
Instructions
Create a new layer with the requested AutoCAD color index; existing names are refused and the active layer is not changed.
Side-effects: Adds layer record to drawing layer table. Disambiguation: Refuses if layer already exists; use layer_update_state to modify existing layers.
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": {
"name": "<name>"
},
"name": "layer_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New layer name to create (must be unique in drawing) | |
| color | No | AutoCAD Color Index (ACI 1-255) (default: 7 - White/Black) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||