undo_edits
Revert a draft to before its last committed edit batch, restoring up to ten undo steps when a revision is current; fails if the revision is stale or no undo remains.
Instructions
Revert a draft to before its last committed batch from edit_parts, edit_connections, route_connections, repair_vehicle or apply_vehicle_assembly. Keeps up to ten batches; there is no redo. Fails when the revision is stale or nothing is left to undo. Returns the new revision and the number of undo steps remaining.
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": {
"design": "<design>",
"revision": "<revision>"
},
"name": "undo_edits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | Stored draft name (from import_vehicle, create_land_vehicle, store_design or save_hull; see list_designs). | |
| revision | Yes | The draft's current revision from query_parts or query_connections; a stale one is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||