autocad_set_layer_state
Freeze or thaw, lock or unlock, and turn layers on or off in AutoCAD drawings while leaving unspecified properties unchanged.
Instructions
Freeze/thaw, lock/unlock, or turn a layer on/off. Only given fields change.
Args: params (SetLayerStateInput): - name (str): layer to update (auto-created if missing). - frozen, locked, off (Optional[bool]): give at least one.
Returns: str: JSON {"status": "updated", "name", "frozen", "locked", "off"}.
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_set_layer_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |