auto_layout
Automatically organizes diagram elements with multiple layout algorithms, enabling clear visual arrangement through customizable spacing, alignment, and direction options.
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>",
"algorithm": "<algorithm>"
},
"name": "auto_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | 布局选项 | |
| algorithm | Yes | 布局算法 | |
| diagram_id | Yes | 图表ID | |
| element_ids | No | 要布局的元素ID列表(不指定则布局所有元素) |