layer_management
Organize diagrams by managing layers and groups: create, delete, move, list, toggle visibility, and reorder.
Instructions
管理图表的图层和分组
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": {
"diagram_id": "<diagram_id>",
"action": "<action>"
},
"name": "layer_management"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 图层操作类型 | |
| layer_id | No | 图层ID | |
| diagram_id | Yes | 图表ID | |
| layer_name | No | 图层名称 | |
| element_ids | No | 要操作的元素ID列表 | |
| layer_order | No | 图层顺序列表(用于reorder_layers) | |
| layer_properties | No | 图层属性 |