Undo Last Change
undo_last_changeReverts the last cleaning or preprocessing change applied to a dataset, restoring its previous shape and reporting how many more undo steps remain.
Instructions
Undo the last change made to a dataset by a cleaning or preprocessing tool (the last 5 changes are remembered). Args: dataset_id (str): ID of the dataset. Returns: dict: the restored shape and how many further undo steps are available.
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": {
"dataset_id": "<dataset_id>"
},
"name": "undo_last_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes |