TRUECALC
MCP

history:restore

Restores the workbook to a specific point in its edit history.

Parameters

NameTypeRequiredDescription
stepsintegeryesHow many undo steps to walk back, from wherever the stack is right now. 0 is a legal, trivially-successful no-op.

Returns

NameTypeRequiredDescription
stepsRequestedintegeryesEchoed from the payload.
stepsCompletedintegeryesHow 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"
  ]
}

On this page