add_bpmn_element
Add tasks, gateways, events, and other BPMN elements to an existing diagram to build or extend workflow models.
Instructions
Add an element (task, gateway, event, etc.) to a BPMN diagram
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": {
"diagramId": "<diagramId>",
"elementType": "<elementType>"
},
"name": "add_bpmn_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate for the element (default: 100) | |
| y | No | Y coordinate for the element (default: 100) | |
| name | No | The name/label for the element | |
| diagramId | Yes | The diagram ID returned from create_bpmn_diagram | |
| isExpanded | No | Whether a subprocess or participant is expanded | |
| elementType | Yes | The type of BPMN element to add | |
| hostElementId | No | Host element ID for boundary events | |
| parentElementId | No | Optional parent container ID, required for lanes and nested elements | |
| eventDefinitionType | No | Optional event definition type, for example bpmn:TimerEventDefinition |