Design kit command

proto.present

Present

Opens the prototype presenter from a frame (default the selected frame or first flow).

Kit
Design 0.1.0 (.kdesign)
Changes the document
no

Parameters

Parameters of proto.present
NameTypeRequiredDescription
idinteger | stringnoread by the command beside its listed parameters
startnumbernoframe id; default: the selected frame, else the first flow, else the first frame

Call through design_run

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

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

Result

Result of proto.present
NameTypeRequiredDescription
startnumberno
uiRequestsobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "start": {
      "type": "number"
    },
    "uiRequests": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "data": {
            "additionalProperties": true,
            "type": "object"
          },
          "kind": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "start": {
      "description": "frame id; default: the selected frame, else the first flow, else the first frame",
      "type": "number",
      "x-khp-types": [
        "Node"
      ]
    }
  },
  "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.