---
title: "edit.history.goto: Go to History State — Motion kit command — Kition"
description: "jump to a state by `index` (from `edit.history.list`), `id`, or `steps` along the working line (negative = back, like Undo)."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/edit.history.goto"
---

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

# edit.history.goto

**Go to History State.** jump to a state by `index` (from `edit.history.list`), `id`, or `steps` along the working line (negative = back, like Undo).

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `integer \| string` | no | an id; one of several alternative parameters |
| `index` | `integer` | no | (from edit.history.list) \| id? \| steps? (negative = back along the line) |
| `redo` | `integer` | no | read by the command beside its listed parameters |
| `steps` | `any` | no | negative = back along the line; one of several alternative parameters |

## Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `id`, `index`, `redo`, `steps`. motion_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": {
    "id": {
      "description": "an id; one of several alternative parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "index": {
      "description": "(from edit.history.list) | id? | steps? (negative = back along the line)",
      "type": "integer"
    },
    "redo": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "steps": {
      "description": "negative = back along the line; one of several alternative parameters"
    }
  },
  "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).
