Duplicate shapes
duplicate_elementsCopies BPMN shapes with names, types, docs, colors, connections, and contained elements, placing copies below or at an offset and returning new IDs by original ID.
Instructions
Copies shapes, with their names, types, documentation, colors and the connections between them, like copy and paste in the editor. All the shapes must have the same parent (the same pool, or the process). The copy is placed below the originals, or shifted by dx and dy. Copying a pool or an expanded subprocess copies what it contains. Connections to shapes that are not copied are left out: draw them with connect_shapes. Returns the new id of each copied element, by original id.
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": {
"ids": "<ids>"
},
"name": "duplicate_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | Horizontal shift of the copy in pixels. Default: 0 | |
| dy | No | Vertical shift of the copy in pixels. Default: the height of the copied group plus 60 | |
| ids | Yes | Ids of the shapes to copy, as returned by get_shapes |