Board kit command

page.move

Move page

Moves a page to a new position among the pages, or one step earlier or later.

Kit
Board 0.1.0 (.kboard)
Changes the document
yes

Parameters

Parameters of page.move
NameTypeRequiredDescription
pagestringyesThe page
placement"previous" | "next"noOne step (instead of to)
tointeger (≥ 0)noThe new position, less than the current page count

Call through board_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: placement, to. 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": {
    "page": {
      "description": "The page",
      "type": "string",
      "x-khp-types": [
        "Page"
      ]
    },
    "placement": {
      "description": "One step (instead of to)",
      "enum": [
        "previous",
        "next"
      ],
      "type": "string"
    },
    "to": {
      "description": "The new position, less than the current page count",
      "minimum": 0,
      "type": "integer"
    }
  },
  "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.