Board kit command

mindmap.collapse

Collapse branch

Hides or shows the branches below a mind-map node (toggles when collapsed is absent).

Kit
Board 0.1.0 (.kboard)
Changes the document
yes
Acts on
node (one id), which a run step’s on fills

Parameters

Parameters of mindmap.collapse
NameTypeRequiredDescription
collapsedbooleannoHide (true) or show (false) what is below; toggles when absent
nodestringyesA node with branches, not the root

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "mindmap.collapse", "params": { "node": <string> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: collapsed. 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": {
    "collapsed": {
      "description": "Hide (true) or show (false) what is below; toggles when absent",
      "type": "boolean"
    },
    "node": {
      "description": "A node with branches, not the root",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    }
  },
  "required": [
    "node"
  ],
  "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.