acad_set_layer
Update properties of an existing AutoCAD layer—such as color, linetype, lineweight, lock, freeze, visibility, or current status—changing only the fields you specify.
Instructions
Change properties of an existing layer. Only the fields you pass are changed.
Freezing the current layer fails in AutoCAD. Make another layer current first.
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": "acad_set_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | ||
| name | Yes | ||
| frozen | No | ||
| locked | No | ||
| linetype | No | ||
| color_index | No | ||
| make_current | No | ||
| lineweight_hundredths_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||