# list_code_backups

Source: https://modulify.ai/docs/mcp/backups/list-code-backups

Lists the code backup history of a site, newest first, with the title, file count and author of each code backup.

- Title: List site code backups
- Scope: `chat:read`
- Access: Read only

Each code backup is a commit that changed the site's code. The individual file names are not recorded, so it cannot answer which files a code backup changed.

This is what the editor shows in the **Code** tab of [Backups](https://modulify.ai/docs/editor/backups), and it is separate from the page and component snapshots `list_backups` returns. It returns 10 per page, so pass `page` to go further back, and the response carries the total `count`. Use a row's `_id` as the `codeBackupId` for `restore_code_backup`. See [Read an entry](https://modulify.ai/docs/editor/backups#read-an-entry).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `page` | integer | No | Which page of history to read, starting at 1. Defaults to 1. |