Design kit command

version.preview

View version

Shows the design a saved version holds (the snapshot its checkpoint carries) on the canvas read-only in place of the document; version.exitPreview goes back.

Kit
Design 0.1.0 (.kdesign)
Changes the document
no

Parameters

Parameters of version.preview
NameTypeRequiredDescription
idstringno
namestringno
snapshotanynobase64
timenumbernothe host's checkpoint, shown in the banner

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "version.preview" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: id, name, snapshot, time. design_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "snapshot": {
      "description": "base64"
    },
    "time": {
      "description": "the host's checkpoint, shown in the banner",
      "type": "number"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.