MCP
history:restore
Restores the workbook to a specific point in its edit history.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
steps | integer | yes | How many undo steps to walk back, from wherever the stack is right now. 0 is a legal, trivially-successful no-op. |
Returns
| Name | Type | Required | Description |
|---|---|---|---|
stepsRequested | integer | yes | Echoed from the payload. |
stepsCompleted | integer | yes | How many steps actually completed, equal to stepsRequested on full success. |
Schema
Request payload, as JSON Schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Payload",
"type": "object",
"properties": {
"steps": {
"description": "How many undo steps to walk back, from wherever the stack is right now. `0` is a legal, trivially-successful no-op.",
"type": "integer",
"format": "uint32",
"minimum": 0
}
},
"required": [
"steps"
]
}Response payload, as JSON Schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Output",
"type": "object",
"properties": {
"stepsRequested": {
"description": "Echoed from the payload.",
"type": "integer",
"format": "uint32",
"minimum": 0
},
"stepsCompleted": {
"description": "How many steps actually completed, equal to `stepsRequested` on full success.",
"type": "integer",
"format": "uint32",
"minimum": 0
}
},
"required": [
"stepsRequested",
"stepsCompleted"
]
}