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

# 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 new WordPress page.                       | Changes the site                 |
| [Delete Page](#delete-page)   | Delete a WordPress page by ID.                     | **Destructive** · Safe to retry  |
| [Get Page](#get-page)         | Get a single WordPress page by ID.                 | Read-only                        |
| [Search Pages](#search-pages) | Search and filter WordPress pages with pagination. | Read-only                        |
| [Update Page](#update-page)   | Update an existing WordPress page by ID.           | Changes the site · Safe to retry |

## Create Page

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

Create a new WordPress page.

No required parameters.

<details>

<summary>Optional parameters (14)</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`          | object                                                                                                                                                                                                           | The title for the post.                                     |
| `content`        | object                                                                                                                                                                                                           | The content for the post.                                   |
| `author`         | integer                                                                                                                                                                                                          | The ID for the author of the post.                          |
| `excerpt`        | 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.           |
| `meta`           | object                                                                                                                                                                                                           | Meta fields.                                                |
| `template`       | string                                                                                                                                                                                                           | The theme file to use to display the post.                  |

</details>

<details>

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

> Create a new WordPress page. Requires title and content. Write the content using plain HTML and, where possible, shortcodes rather than Gutenberg block markup (e.g. avoid "" comments). Prefer shortcodes over custom Gutenberg blocks so the page never references a block that is not registered on the site, which would break the editor. For a contact form use the \[hostinger\_contact\_form] shortcode instead of a custom block. Only use a Gutenberg block if you are certain it is registered. The response includes view\_url and edit\_url. After successful creation, 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

Delete a WordPress page by ID.

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

<details>

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

> Delete a WordPress page by ID. This action cannot be undone.

</details>

## Get Page

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

Get a single WordPress page by ID.

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

<details>

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

> Get a single WordPress page by ID. Returns the full page object with all fields.

</details>

## Search Pages

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

Search and filter WordPress pages with pagination.

No required parameters.

<details>

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

| Parameter          | Type                                                                                                                                                                                                                                                                                                                                       | Default   | Description                                                                   |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | ----------------------------------------------------------------------------- |
| `context`          | one of `view`, `embed`, `edit`                                                                                                                                                                                                                                                                                                             | `view`    | Scope under which the request is made; determines fields present in response. |
| `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.                       |
| `author_exclude`   | array of integer                                                                                                                                                                                                                                                                                                                           | `[]`      | Ensure result set excludes 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.                  |
| `search_semantics` | one of `exact`                                                                                                                                                                                                                                                                                                                             |           | How to interpret the search input.                                            |
| `offset`           | integer                                                                                                                                                                                                                                                                                                                                    |           | Offset the result set by a specific number of items.                          |
| `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.                         |
| `parent_exclude`   | array of integer                                                                                                                                                                                                                                                                                                                           | `[]`      | Limit result set to all items except those of a particular parent ID.         |
| `search_columns`   | array of `post_title`, `post_content`, `post_excerpt`                                                                                                                                                                                                                                                                                      | `[]`      | Array of column names to be searched.                                         |
| `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 WordPress pages with pagination. Returns a list of pages matching the search criteria.

</details>

## Update Page

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

Update an existing WordPress page by ID.

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

<details>

<summary>Optional parameters (14)</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`          | object                                                                                                                                                                                                           | The title for the post.                                     |
| `content`        | object                                                                                                                                                                                                           | The content for the post.                                   |
| `author`         | integer                                                                                                                                                                                                          | The ID for the author of the post.                          |
| `excerpt`        | 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.           |
| `meta`           | object                                                                                                                                                                                                           | Meta fields.                                                |
| `template`       | string                                                                                                                                                                                                           | The theme file to use to display the post.                  |

</details>

<details>

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

> Update an existing WordPress page by ID. Only provided fields will be updated. When updating content, write plain HTML and, where possible, shortcodes rather than Gutenberg block markup (e.g. avoid "" comments). Prefer shortcodes over custom Gutenberg blocks so the page never references a block that is not registered on the site. For a contact form use the \[hostinger\_contact\_form] shortcode instead of a custom block.

</details>

## Related

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