Board kit command

template.insert

Template

Inserts a ready structure (mind map, flowchart, roadmap, kanban, retrospective, storyboard) centred at `at` or right of the content.

Kit
Board 0.1.0 (.kboard)
Changes the document
yes

Parameters

Parameters of template.insert
NameTypeRequiredDescription
atnumber[] | objectno[x, y] for the template's centre; right of the content when absent
pagestringnoThe page's id; the shown page when absent
template"mindmap" | "flowchart" | "roadmap" | "kanban" | "retrospective" | "storyboard"yesThe starting structure

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "template.insert", "params": { "template": <"mindmap" | "flowchart" | "roadmap" | "kanban" | "retrospective" | "storyboard"> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: at, page. 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": {
    "at": {
      "description": "[x, y] for the template's centre; right of the content when absent",
      "oneOf": [
        {
          "items": {
            "description": "One component",
            "maximum": 1000000,
            "minimum": -1000000,
            "type": "number"
          },
          "type": "array"
        },
        {
          "additionalProperties": false,
          "properties": {
            "x": {
              "description": "One component",
              "maximum": 1000000,
              "minimum": -1000000,
              "type": "number"
            },
            "y": {
              "description": "One component",
              "maximum": 1000000,
              "minimum": -1000000,
              "type": "number"
            }
          },
          "required": [
            "x",
            "y"
          ],
          "type": "object"
        }
      ]
    },
    "page": {
      "description": "The page's id; the shown page when absent",
      "type": "string",
      "x-khp-types": [
        "Page"
      ]
    },
    "template": {
      "description": "The starting structure",
      "enum": [
        "mindmap",
        "flowchart",
        "roadmap",
        "kanban",
        "retrospective",
        "storyboard"
      ],
      "type": "string"
    }
  },
  "required": [
    "template"
  ],
  "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.