Undo
undoRevert the latest change to a design: the design goes back to how it was before that call (any tool that changed it: layers, structure, motion). Call it again to step back further; there is no redo, so an undone change has to be made again. Returns the revision the design is now at and the change it is back to; refused when there is nothing to undo. Free. Use it when an edit made things worse; to remove one property, change it with update_layers instead.
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": {
"page_id": "<page_id>"
},
"name": "undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | The page to work on, as returned by create_design. |