Board kit command

page.activate

Show page

Shows a page in the editor; this is view state, not an undo step, and the document does not change.

Kit
Board 0.1.0 (.kboard)
Changes the document
no

Parameters

Parameters of page.activate
NameTypeRequiredDescription
pagestringyesThe id of the page to show (view state, not an undo step)

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "page.activate", "params": { "page": <string> } }]
}

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

Result

Result of page.activate
NameTypeRequiredDescription
pagestringyesThe page now shown
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "page": {
      "description": "The page now shown",
      "type": "string"
    }
  },
  "required": [
    "page"
  ],
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "page": {
      "description": "The id of the page to show (view state, not an undo step)",
      "type": "string",
      "x-khp-types": [
        "Page"
      ]
    }
  },
  "required": [
    "page"
  ],
  "type": "object"
}

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