# project_history MCP tool

Get edit history, or perform undo/redo.

{/* Generated by landing/scripts/generate-mcp-docs.ts. Do not edit. */}

MCP name `project_history` dispatches to renderer `projectHistory`.

Does not use hosted quota. Local editor operation.

Get edit history, or perform undo/redo. Editor must be open. Does not use hosted quota. Local editor operation.

## Advertised MCP input

The MCP server validates this object with `.strict()`. Unknown fields are rejected.

| Field | Type | Required | Constraints | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `action` | enum("status", "undo", "redo") | no | — | "status" | 'status' lists history, 'undo'/'redo' perform the action |
| `steps` | integer | no | min 1; max 50 | — | Number of steps to undo/redo (default 1) |
| `resultStart` | integer | no | min 0; max 9007199254740991 | 0 | First character offset to return. Use 0 for the first call. |
| `resultEnd` | integer | no | min 1; max 9007199254740991 | 8000 | Exclusive end offset. resultEnd - resultStart must be at most 8000. Increment resultStart by 8000 to page through large results. |


## Renderer schema

Authoritative input the editor applies after MCP passthrough or dispatch.

| Field | Type | Required | Constraints | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `action` | enum("status", "undo", "redo") | no | — | "status" | — |
| `steps` | integer | no | min 1; max 50 | — | — |

## Result window

Every local MCP tool accepts `resultStart` and `resultEnd` so large payloads can be paged.

- `resultStart` — first character offset. Default `0`.
- `resultEnd` — exclusive end offset. Default `8000`.
- `resultEnd - resultStart` must be at most **8000** characters.
- Increment `resultStart` by 8000 to read the next window.
