Undo
undoRevert the last change or changes on a BPMN diagram, including a full tool call, user gesture, or layout change. Restore a known-good state after verifying the result was wrong.
Instructions
Undoes the last changes on the diagram, like the editor's Undo button (Ctrl+Z): a whole tool call, or a user gesture, per step, including a layout or a replaced diagram. Use it to back out of your own last call when its result is wrong, after checking with get_shapes or get_diagram_image. It also undoes the user's own edits if they come last: read the diagram first. Returns how many steps were undone and whether more can be undone or redone.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Number of steps to undo. Default: 1 |