Board kit command

page.add

New page

Adds a new page with a name (Page N by default) at a position (last by default); answers its id.

Kit
Board 0.1.0 (.kboard)
Changes the document
yes

Parameters

Parameters of page.add
NameTypeRequiredDescription
activatebooleannoMake it the page being edited (false by default)
atinteger (≥ 0)noPosition among the pages (last by default); at most the current page count
namestringnoThe name (Page N by default)

Call through board_run

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

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

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "activate": {
      "description": "Make it the page being edited (false by default)",
      "type": "boolean"
    },
    "at": {
      "description": "Position among the pages (last by default); at most the current page count",
      "minimum": 0,
      "type": "integer"
    },
    "name": {
      "description": "The name (Page N by default)",
      "type": "string"
    }
  },
  "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.