---
title: "mindmap.setDirection: Mind map direction — Board kit command — Kition"
description: "Sets which way the mind map grows (right, left, both ways, down) and lays it out again."
canonical: "https://developer.kition.ai/docs/kits/board/commands/mindmap.setDirection"
---

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

# mindmap.setDirection

**Mind map direction.** Sets which way the mind map grows (right, left, both ways, down) and lays it 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 |
| --- | --- | --- | --- |
| `direction` | `"both" \| "right" \| "left" \| "down"` | yes | Where the map grows |
| `node` | `string` | yes | Any node of the mind map |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "mindmap.setDirection", "params": { "direction": <"both" | "right" | "left" | "down">, "node": <string> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. 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": {
    "direction": {
      "description": "Where the map grows",
      "enum": [
        "both",
        "right",
        "left",
        "down"
      ],
      "type": "string"
    },
    "node": {
      "description": "Any node of the mind map",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    }
  },
  "required": [
    "direction",
    "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).
