# history.undo

Source: https://docs.lightair.app/developers/remote-api/history.undo

> Undoes the last change to the show, whoever made it.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: History and commands. Script plugins need the `project.write` permission.

## Parameters

None.

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `done` | `string | null` | no | "Undo: " and the change's name. |

## Events

- `workspace.changed`

## From an AI agent

The MCP server's `undo` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "history.undo", "params": {} }
```

Result:

```json
{ "done": "Undo: MCP: Add Text" }
```

## Related

- [history.redo](https://docs.lightair.app/developers/remote-api/history.redo.md)
- [commands.execute](https://docs.lightair.app/developers/remote-api/commands.execute.md)
