update_element
Update properties of an existing diagram element such as position, size, text, style, and more. Specify the diagram, element ID, and desired changes to modify elements directly.
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>",
"element_id": "<element_id>",
"updates": "<updates>"
},
"name": "update_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | 更新选项 | |
| updates | Yes | 要更新的属性 | |
| diagram_id | Yes | 图表ID | |
| element_id | Yes | 要更新的元素ID |