> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities/revisions.md).

# Revisions

Revisions abilities of the Hostinger AI plugin's WordPress site MCP server. List, read, restore and delete earlier versions of posts and pages.

List, read, restore and delete earlier versions of posts and pages.

**Available:** Always.

| Ability                               | What it does                                                                                                      | Type                            |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| [Delete Revision](#delete-revision)   | Permanently delete one revision of an item.                                                                       | **Destructive** · Safe to retry |
| [Get Revision](#get-revision)         | Get one revision of an item with its content.                                                                     | Read-only                       |
| [List Revisions](#list-revisions)     | List the revisions of a post, page or other item.                                                                 | Read-only                       |
| [Restore Revision](#restore-revision) | Restore a revision by copying its content back to the parent item; works for any post type through its REST base. | Changes the site                |

## Delete Revision

`hostinger-ai/revisions-delete` · **Destructive** · Safe to retry

Permanently delete one revision of an item.

| Required parameter | Type    | Description                                                                     |
| ------------------ | ------- | ------------------------------------------------------------------------------- |
| `id`               | integer | Unique identifier for the resource                                              |
| `base_api`         | string  | REST API base for the post type (e.g., posts, pages, templates, product, etc.). |
| `parent`           | integer | The parent item ID.                                                             |

<details>

<summary>Description sent to AI tools</summary>

> Permanently delete one revision of an item. Use when asked to remove an old version. Needs `parent` from `hostinger-ai/posts-search` or `hostinger-ai/pages-search`, and `base_api` set to the REST base of that item (e.g. `posts` or `pages`), and `id` from `hostinger-ai/revisions-list`.

</details>

## Get Revision

`hostinger-ai/revisions-get` · Read-only

Get one revision of an item with its content.

| Required parameter | Type    | Description                                                                     |
| ------------------ | ------- | ------------------------------------------------------------------------------- |
| `id`               | integer | Unique identifier for the resource                                              |
| `base_api`         | string  | REST API base for the post type (e.g., posts, pages, templates, product, etc.). |
| `parent`           | integer | The parent item ID.                                                             |

<details>

<summary>Description sent to AI tools</summary>

> Get one revision of an item with its content. Use when you need to inspect or compare an older version. Needs `parent` from `hostinger-ai/posts-search` or `hostinger-ai/pages-search`, and `base_api` set to the REST base of that item (e.g. `posts` or `pages`), and `id` from `hostinger-ai/revisions-list`.

</details>

## List Revisions

`hostinger-ai/revisions-list` · Read-only

List the revisions of a post, page or other item.

| Required parameter | Type    | Description                                                                     |
| ------------------ | ------- | ------------------------------------------------------------------------------- |
| `base_api`         | string  | REST API base for the post type (e.g., posts, pages, templates, product, etc.). |
| `parent`           | integer | The parent item ID to list revisions for.                                       |

<details>

<summary>Optional parameters (7)</summary>

| Parameter  | Type                                                                          | Default | Description                                           |
| ---------- | ----------------------------------------------------------------------------- | ------- | ----------------------------------------------------- |
| `page`     | integer                                                                       | `1`     | Current page of the collection.                       |
| `per_page` | integer                                                                       |         | Maximum number of items to be returned in result set. |
| `search`   | string                                                                        |         | Limit results to those matching a string.             |
| `exclude`  | array of integer                                                              | `[]`    | Ensure result set excludes specific IDs.              |
| `include`  | array of integer                                                              | `[]`    | Limit result set to specific IDs.                     |
| `order`    | one of `asc`, `desc`                                                          | `desc`  | Order sort attribute ascending or descending.         |
| `orderby`  | one of `date`, `id`, `include`, `relevance`, `slug`, `include_slugs`, `title` | `date`  | Sort collection by object attribute.                  |

</details>

<details>

<summary>Description sent to AI tools</summary>

> List the revisions of a post, page or other item. Use when asked about the edit history or to undo changes. Needs `parent` from `hostinger-ai/posts-search` or `hostinger-ai/pages-search`, and `base_api` set to the REST base of that item (e.g. `posts` or `pages`).

</details>

## Restore Revision

`hostinger-ai/revisions-restore` · Changes the site

Restore a revision by copying its content back to the parent item; works for any post type through its REST base.

| Required parameter | Type    | Description                                                                     |
| ------------------ | ------- | ------------------------------------------------------------------------------- |
| `base_api`         | string  | REST API base for the post type (e.g., posts, pages, templates, product, etc.). |
| `parent`           | integer | ID of the parent item to restore into.                                          |
| `revision_id`      | integer | ID of the revision to restore from.                                             |

<details>

<summary>Optional parameters (1)</summary>

| Parameter | Type                                   | Description                                                                  |
| --------- | -------------------------------------- | ---------------------------------------------------------------------------- |
| `fields`  | array of `title`, `content`, `excerpt` | Optional list of fields to restore. Defaults to title, content, and excerpt. |

</details>

<details>

<summary>Description sent to AI tools</summary>

> Restore a revision by copying its content back to the parent item; works for any post type through its REST base. Use when asked to undo changes or go back to an older version. Needs `parent` from `hostinger-ai/posts-search` or `hostinger-ai/pages-search`, and `base_api` set to the REST base of that item (e.g. `posts` or `pages`), and `revision_id` from `hostinger-ai/revisions-list`.

</details>

## Related

* [Abilities Reference](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities.md)
* [WordPress Site MCP Server](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/mcp-server.md)
