---
title: "mindmap.collapse: Collapse branch — Board kit command — Kition"
description: "Hides or shows the branches below a mind-map node (toggles when collapsed is absent)."
canonical: "https://developer.kition.ai/docs/kits/board/commands/mindmap.collapse"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/board/commands/mindmap.collapse](https://developer.kition.ai/docs/kits/board/commands/mindmap.collapse)

# 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); reference: [Board kit commands](https://developer.kition.ai/docs/kits/board.md)
- Changes the document: yes
- Acts on: `node` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `collapsed` | `boolean` | no | Hide (true) or show (false) what is below; toggles when absent |
| `node` | `string` | yes | A 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/board-darwin-arm64@0.1.0 and the kit itself (board_commands through @kition/cli@0.1.1, built from KitionAI/kition-board@e78c190).
