bpmn_history
Reverse or re-apply edits to a BPMN diagram using the bpmn-js command stack, including multiple undo/redo steps. Note: layout operations bypass the stack and cannot be undone.
Instructions
Undo or redo changes on a BPMN diagram. Uses the bpmn-js command stack to reverse or re-apply operations. Supports multiple steps. Note: layout operations (layout_bpmn_diagram) bypass the command stack for boundary event repositioning and the normaliseOrigin fallback — these specific changes cannot be undone.
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>",
"action": "<action>"
},
"name": "bpmn_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Number of steps to undo/redo (default: 1). | |
| action | Yes | The history action to perform: 'undo' to reverse, 'redo' to re-apply. | |
| diagramId | Yes | The diagram ID |