---
title: "edit.undo: Undo — Board kit command — Kition"
description: "Takes back the last step of one scope: the person's or the agent's (by default the caller's own), leaving the other scope's later steps in place."
canonical: "https://developer.kition.ai/docs/kits/board/commands/edit.undo"
---

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

# edit.undo

**Undo.** Takes back the last step of one scope: the person's or the agent's (by default the caller's own), leaving the other scope's later steps in place.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `scope` | `"person" \| "agent"` | no | Whose last step to undo: the person's or the agent's. By default the scope of whoever runs it (an agent undoes only its own steps) |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "edit.undo" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `scope`. 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": {
    "scope": {
      "description": "Whose last step to undo: the person's or the agent's. By default the scope of whoever runs it (an agent undoes only its own steps)",
      "enum": [
        "person",
        "agent"
      ],
      "type": "string"
    }
  },
  "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).
