---
title: "edit.history.list: History — Motion kit command — Kition"
description: "Returns the branching undo history: every state with index, id, label, parent, depth, whether it is current or in the future, plus the current index and the number of branches."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/edit.history.list"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/edit.history.list](https://developer.kition.ai/docs/kits/motion/commands/edit.history.list)

# edit.history.list

**History.** Returns the branching undo history: every state with index, id, label, parent, depth, whether it is current or in the future, plus the current index and the number of branches.

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

None.

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "edit.history.list" }]
}
```

The required parameters, with placeholders for their types: not a tested example. motion_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `branches` | `integer` | no |  |
| `current` | `integer` | no |  |
| `states` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "branches": {
      "type": "integer"
    },
    "current": {
      "type": "integer"
    },
    "states": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "current": {
            "type": "boolean"
          },
          "depth": {
            "type": "integer"
          },
          "future": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "index": {
            "type": "integer"
          },
          "label": {
            "type": "string"
          },
          "line": {
            "type": "boolean"
          },
          "parent": {}
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
