Pop Undo Stack
undoRevert recent changes in the active Cinema 4D document by popping up to the requested number of entries from the undo stack, stopping when empty. Returns steps_performed to signal when fewer steps were available.
Instructions
Pop up to steps entries off the active document's undo stack via doc.DoUndo. Stops early if the stack empties. Returns steps_performed so callers can tell when fewer steps were available than requested. Default: 1 step.
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 undo steps to perform (default 1). |