Replace the diagram
set_diagram_xmlReplaces the open BPMN diagram with a complete BPMN 2.0 XML document and its diagram layout. Use it to load a full process model at once; the replacement can be undone in one step.
Instructions
Replaces the whole open diagram with the given BPMN 2.0 XML. The user can undo it in one step, but not the earlier changes one by one.
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": {
"xml": "<xml>"
},
"name": "set_diagram_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Complete BPMN 2.0 XML document, with its diagram layout (BPMNDiagram) |