> 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/pages.md). Agents can also search and read this documentation through its [MCP server](https://docs.hostinger.com/~gitbook/mcp).

# Pages

Pages abilities of the Hostinger AI plugin's WordPress site MCP server. Search, read, create, update and delete pages.

Search, read, create, update and delete pages.

**Available:** Always.

| Ability                       | What it does                                                                                                                         | Type                             |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------- |
| [Create Page](#create-page)   | Create a page from a title and content.                                                                                              | Changes the site                 |
| [Delete Page](#delete-page)   | Move a page to the trash and remove the menu links that point to it; the page can be restored from the trash, the menu links cannot. | **Destructive** · Safe to retry  |
| [Get Page](#get-page)         | Get one page by ID with all its fields.                                                                                              | Read-only                        |
| [Search Pages](#search-pages) | Search and filter pages with pagination.                                                                                             | Read-only                        |
| [Update Page](#update-page)   | Update a page; only the fields you pass change.                                                                                      | Changes the site · Safe to retry |

## Create Page

`hostinger-ai/pages-create` · Changes the site

Create a page from a title and content.

| Required parameter | Type             | Description             |
| ------------------ | ---------------- | ----------------------- |
| `title`            | string or object | The title for the post. |

<details>

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

| Parameter        | Type                                                                                                                                                                                                             | Description                                                 |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| `slug`           | string                                                                                                                                                                                                           | An alphanumeric identifier for the post unique to its type. |
| `status`         | one of `publish`, `future`, `draft`, `pending`, `private`, `in-progress`, `failed`, `wc-pending`, `wc-processing`, `wc-on-hold`, `wc-completed`, `wc-cancelled`, `wc-refunded`, `wc-failed`, `wc-checkout-draft` | A named status for the post.                                |
| `password`       | string                                                                                                                                                                                                           | A password to protect access to the content and excerpt.    |
| `parent`         | integer                                                                                                                                                                                                          | The ID for the parent of the post.                          |
| `content`        | string or object                                                                                                                                                                                                 | The content for the post.                                   |
| `author`         | integer                                                                                                                                                                                                          | The ID for the author of the post.                          |
| `excerpt`        | string or object                                                                                                                                                                                                 | The excerpt for the post.                                   |
| `featured_media` | integer                                                                                                                                                                                                          | The ID of the featured media for the post.                  |
| `comment_status` | one of `open`, `closed`                                                                                                                                                                                          | Whether or not comments are open on the post.               |
| `ping_status`    | one of `open`, `closed`                                                                                                                                                                                          | Whether or not the post can be pinged.                      |
| `menu_order`     | integer                                                                                                                                                                                                          | The order of the post in relation to other posts.           |
| `template`       | string                                                                                                                                                                                                           | The theme file to use to display the post.                  |

</details>

<details>

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

> Create a page from a title and content. Use when asked to add a new page to the site. Send HTML or block markup; HTML is converted to blocks. Only use a block you are certain is registered on the site, since an unregistered block breaks the editor; for a contact form use the \[hostinger\_contact\_form] shortcode. An optional `parent` page ID comes from `hostinger-ai/pages-search` and `featured_media` from `hostinger-ai/media-search`. The response includes view\_url and edit\_url; after creating it, always include a direct link to the new page in your reply (view\_url if published, otherwise edit\_url).

</details>

## Delete Page

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

Move a page to the trash and remove the menu links that point to it; the page can be restored from the trash, the menu links cannot.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

> Move a page to the trash and remove the menu links that point to it; the page can be restored from the trash, the menu links cannot. Use when asked to remove a page. Needs `id` from `hostinger-ai/pages-search`.

</details>

## Get Page

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

Get one page by ID with all its fields.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

> Get one page by ID with all its fields. Use when you need the full content or settings of a known page. Needs `id` from `hostinger-ai/pages-search`.

</details>

## Search Pages

`hostinger-ai/pages-search` · Read-only

Search and filter pages with pagination.

No required parameters.

<details>

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

| Parameter    | Type                                                                                                                                                                                                                                                                                                                                       | Default   | Description                                                  |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | ------------------------------------------------------------ |
| `page`       | integer                                                                                                                                                                                                                                                                                                                                    | `1`       | Current page of the collection.                              |
| `per_page`   | integer                                                                                                                                                                                                                                                                                                                                    | `10`      | Maximum number of items to be returned in result set.        |
| `search`     | string                                                                                                                                                                                                                                                                                                                                     |           | Limit results to those matching a string.                    |
| `author`     | array of integer                                                                                                                                                                                                                                                                                                                           | `[]`      | Limit result set to posts assigned to specific authors.      |
| `exclude`    | array of integer                                                                                                                                                                                                                                                                                                                           | `[]`      | Ensure result set excludes specific IDs.                     |
| `include`    | array of integer                                                                                                                                                                                                                                                                                                                           | `[]`      | Limit result set to specific IDs.                            |
| `menu_order` | integer                                                                                                                                                                                                                                                                                                                                    |           | Limit result set to posts with a specific menu\_order value. |
| `order`      | one of `asc`, `desc`                                                                                                                                                                                                                                                                                                                       | `desc`    | Order sort attribute ascending or descending.                |
| `orderby`    | one of `author`, `date`, `id`, `include`, `modified`, `parent`, `relevance`, `slug`, `include_slugs`, `title`, `menu_order`                                                                                                                                                                                                                | `date`    | Sort collection by post attribute.                           |
| `parent`     | array of integer                                                                                                                                                                                                                                                                                                                           | `[]`      | Limit result set to items with particular parent IDs.        |
| `slug`       | array of string                                                                                                                                                                                                                                                                                                                            |           | Limit result set to posts with one or more specific slugs.   |
| `status`     | array of `publish`, `future`, `draft`, `pending`, `private`, `trash`, `auto-draft`, `inherit`, `request-pending`, `request-confirmed`, `request-failed`, `request-completed`, `in-progress`, `failed`, `wc-pending`, `wc-processing`, `wc-on-hold`, `wc-completed`, `wc-cancelled`, `wc-refunded`, `wc-failed`, `wc-checkout-draft`, `any` | `publish` | Limit result set to posts assigned one or more statuses.     |

</details>

<details>

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

> Search and filter pages with pagination. Use when you need a page ID, or to find, list or count pages.

</details>

## Update Page

`hostinger-ai/pages-update` · Changes the site · Safe to retry

Update a page; only the fields you pass change.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

| Parameter        | Type                                                                                                                                                                                                             | Description                                                 |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| `slug`           | string                                                                                                                                                                                                           | An alphanumeric identifier for the post unique to its type. |
| `status`         | one of `publish`, `future`, `draft`, `pending`, `private`, `in-progress`, `failed`, `wc-pending`, `wc-processing`, `wc-on-hold`, `wc-completed`, `wc-cancelled`, `wc-refunded`, `wc-failed`, `wc-checkout-draft` | A named status for the post.                                |
| `password`       | string                                                                                                                                                                                                           | A password to protect access to the content and excerpt.    |
| `parent`         | integer                                                                                                                                                                                                          | The ID for the parent of the post.                          |
| `title`          | string or object                                                                                                                                                                                                 | The title for the post.                                     |
| `content`        | string or object                                                                                                                                                                                                 | The content for the post.                                   |
| `author`         | integer                                                                                                                                                                                                          | The ID for the author of the post.                          |
| `excerpt`        | string or object                                                                                                                                                                                                 | The excerpt for the post.                                   |
| `featured_media` | integer                                                                                                                                                                                                          | The ID of the featured media for the post.                  |
| `comment_status` | one of `open`, `closed`                                                                                                                                                                                          | Whether or not comments are open on the post.               |
| `ping_status`    | one of `open`, `closed`                                                                                                                                                                                          | Whether or not the post can be pinged.                      |
| `menu_order`     | integer                                                                                                                                                                                                          | The order of the post in relation to other posts.           |
| `template`       | string                                                                                                                                                                                                           | The theme file to use to display the post.                  |

</details>

<details>

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

> Update a page; only the fields you pass change. Use when asked to edit, publish or rewrite a page. Send HTML or block markup; HTML is converted to blocks. Only use a block you are certain is registered on the site, since an unregistered block breaks the editor; for a contact form use the \[hostinger\_contact\_form] shortcode. Needs `id` from `hostinger-ai/pages-search`.

</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)
