bricscad_set_layer
Create a new drawing layer or modify an existing one by setting its name, color, linetype, visibility, freeze, and lock state; only supplied properties change.
Instructions
Create a layer, or change one that exists. Only the values you give are changed.
new_name: rename the layer. Layers 0 and Defpoints cannot be renamed. color: a color number from 1 to 255. linetype: loaded from iso.lin if the drawing does not have it yet. on, frozen, locked: true or false. The current layer cannot be frozen.
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": "bricscad_set_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | ||
| name | Yes | ||
| color | No | ||
| frozen | No | ||
| locked | No | ||
| timeout | No | ||
| linetype | No | ||
| new_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||