For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 a new WordPress page.

Changes the site

Delete a WordPress page by ID.

Destructive · Safe to retry

Get a single WordPress page by ID.

Read-only

Search and filter WordPress pages with pagination.

Read-only

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.

Optional parameters (14)
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.

Description sent to AI tools

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

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

Description sent to AI tools

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

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

Description sent to AI tools

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

Search Pages

hostinger-ai/pages-search · Read-only

Search and filter WordPress pages with pagination.

No required parameters.

Optional parameters (18)
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.

Description sent to AI tools

Search and filter WordPress pages with pagination. Returns a list of pages matching the search criteria.

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

Optional parameters (14)
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.

Description sent to AI tools

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.

Last updated

Was this helpful?