Design kit command

text.endPreview

End text preview

Ends a text preview, putting the document back as it was.

Kit
Design 0.1.0 (.kdesign)
Changes the document
no

Parameters

Parameters of text.endPreview
NameTypeRequiredDescription
textstringnoread by the command beside its listed parameters

Call through design_run

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

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

Result

Result of text.endPreview
NameTypeRequiredDescription
endedbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "ended": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "text": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "returns": "{ended}",
  "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.