copy_paste
Copy, cut, paste, or duplicate diagram elements within or across diagrams. Control paste position, offset, style, and connection preservation.
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": "copy_paste"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 复制粘贴操作类型 | |
| diagram_id | Yes | 图表ID | |
| element_ids | No | 要操作的元素ID列表 | |
| paste_options | No | 粘贴选项 | |
| clipboard_data | No | 剪贴板数据(用于paste操作) | |
| target_diagram_id | No | 目标图表ID(用于跨图表复制) |