update_style
Update styles for diagrams, elements, or connections in Draw.io. Specify the target type, ID, and style properties like colors, fonts, and borders to apply changes instantly.
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>",
"target": "<target>",
"style": "<style>"
},
"name": "update_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | Yes | 样式更新对象 | |
| target | Yes | 样式目标类型 | |
| target_id | No | 目标元素或连接的ID(当target不是diagram时必需) | |
| diagram_id | Yes | 图表ID |