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
| Name | Type | Required | Description |
|---|---|---|---|
page | string | yes | The page |
placement | "previous" | "next" | no | One step (instead of to) |
to | integer (≥ 0) | no | The 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.