vw_rename_layer
Rename a design or sheet layer while keeping its objects in place; the call fails if the new name is already in use.
Instructions
Rename a design or sheet layer; its objects stay where they are. Fails if the new name exists. One revertible step: vw_revert_last renames it back. Returns {name, new_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": {
"name": "<name>",
"new_name": "<new_name>"
},
"name": "vw_rename_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Current layer name, as vw_list_layers shows it. | |
| document | No | Name of the document this call may change, as listed by vw_list_documents. If given and another document is in front, nothing changes and the call fails; use vw_switch_document first. Always pass it for writes. | |
| new_name | Yes | New name; must not be in use. |