autocad_undo
Revert the last N operations in a live AutoCAD session via the COM backend (1–50 steps). Use to step back drawing changes when an edit goes wrong.
Instructions
Undo the last N operations. COM backend only (needs a live AutoCAD session).
Args: params (UndoInput): - steps (int): number of operations to undo (default 1, max 50).
Returns: str: JSON {"status": "undone", "steps"}; an "Error (NotImplementedError)" message if the active backend is ezdxf.
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": {
"params": "<params>"
},
"name": "autocad_undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |