---
title: "mindmap.addChild: Add branch — Board kit command — Kition"
description: "Adds a branch node under a mind-map node (on a chosen side for two-way maps) and lays the map out again."
canonical: "https://developer.kition.ai/docs/kits/board/commands/mindmap.addChild"
---

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

# mindmap.addChild

**Add branch.** Adds a branch node under a mind-map node (on a chosen side for two-way maps) and lays the map out again.

- 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 |
| --- | --- | --- | --- |
| `node` | `string` | yes | The node to branch from |
| `side` | `"left" \| "right"` | no | Which side of the root, for a map that grows both ways |
| `text` | `string` | no | The new node's text |

## Call through board_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `side`, `text`. 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": {
    "node": {
      "description": "The node to branch from",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    },
    "side": {
      "description": "Which side of the root, for a map that grows both ways",
      "enum": [
        "left",
        "right"
      ],
      "type": "string"
    },
    "text": {
      "description": "The new node's text",
      "type": "string"
    }
  },
  "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).
