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

Elementor

Elementor abilities of the Hostinger AI plugin's WordPress site MCP server. Inspect Elementor pages and templates, edit containers and widgets, and change global colors and fonts.

Inspect Elementor pages and templates, edit containers and widgets, and change global colors and fonts.

Available: Only while Elementor is active on the site.

Ability
What it does
Type

Assigns Elementor global colors to widget properties.

Changes the site · Safe to retry

Creates a new Elementor container (section) at root or inside a parent container.

Changes the site

Safely removes a container.

Destructive · Safe to retry

Updates container styling: background (color, image, gradient or video via the "background" object), padding/margin, border (radius/width/color/style), opacity, z-index.

Changes the site · Safe to retry

Searches for specific widget types in an Elementor page structure.

Read-only

Retrieves the active Elementor kit with all settings including global colors, typography presets, custom CSS, and theme style settings.

Read-only

Retrieves a specific Elementor kit by post ID with all settings including global colors, typography presets, and theme style settings.

Read-only

Returns a readable, hierarchical summary of Elementor page structure without raw JSON.

Read-only

Retrieves complete information about a specific Elementor widget by its unique ID, including all settings, position, and parent information.

Read-only

Retrieves all posts/pages/custom post types that use Elementor builder.

Read-only

Retrieves Elementor templates from the elementor_library post type.

Read-only

Updates container layout and structure settings like layout, direction, content width, alignment, spacing, and number of inner columns.

Changes the site · Safe to retry

Updates Elementor global colors and/or typography presets in the active kit in a single call.

Changes the site · Safe to retry

Safely updates text content of Elementor widgets (heading, button, text-editor).

Changes the site · Safe to retry

Updates an Elementor image widget source.

Changes the site · Safe to retry

Updates link URLs in buttons and other link-capable Elementor widgets.

Changes the site · Safe to retry

Updates visual styles of Elementor widgets including colors, typography, spacing (padding/margin), borders, and alignment.

Changes the site · Safe to retry

Assign Elementor Global Color

hostinger-ai/elementor-assign-global-color · Changes the site · Safe to retry

Assigns Elementor global colors to widget properties.

Required parameter
Type
Description

post_id

integer

The ID of the post/page containing the widget

widget_id

string

The unique ID of the widget to update

property

one of title_color, text_color, background_color, button_background_color, button_text_color, border_color, hover_color, icon_color, description_color, heading_color

The color property to assign. Common properties: title_color (for headings), text_color (for text), background_color, button_background_color, button_text_color, border_color, hover_color, icon_color

global_color_id

string

The global color ID from the active kit. Use get_active_kit tool first to see available color IDs. Common system colors: primary, secondary, text, accent. Custom colors have unique IDs like "09cc561".

Description sent to AI tools

Assigns Elementor global colors to widget properties. First use get_active_kit to see available global colors and their IDs. Common color properties: title_color (heading color), text_color (paragraph color), background_color, button_background_color, button_text_color, border_color, hover_color. This creates a dynamic link - when the global color changes in the kit, all widgets using it update automatically.

Create Elementor Container

hostinger-ai/elementor-create-container · Changes the site

Creates a new Elementor container (section) at root or inside a parent container.

Required parameter
Type
Description

post_id

integer

The ID of the post/page to modify

Optional parameters (9)
Parameter
Type
Default
Description

parent_id

string

Optional parent container ID. If omitted, operations happen at the root level.

position

one of start, end, before, after, index

end

Insertion position relative to list (start/end), a sibling (before/after) or a specific index.

sibling_id

string

Required when position is before/after. The sibling element ID.

index

integer

Zero-based index to insert at when position is index.

layout

one of flex, grid

Container layout type

direction

one of row, column

Flex direction (row or column). Applies to flex layout.

content_width

one of boxed, full_width

Content width behavior for the container

css_class

string

Optional CSS class to assign/update on the container

columns

integer

Number of inner columns (containers)

Description sent to AI tools

Creates a new Elementor container (section) at root or inside a parent container. Can optionally create multiple inner columns.

Delete Elementor Container

hostinger-ai/elementor-delete-container · Destructive · Safe to retry

Safely removes a container.

Required parameter
Type
Description

post_id

integer

The ID of the post/page to modify

container_id

string

The ID of the target container

Optional parameters (2)
Parameter
Type
Default
Description

preserve_children

boolean

false

If true, move the container's children into the parent at the same position instead of deleting them.

confirm

boolean

false

Confirm deletion when the subtree is complex (many descendants) and children will be removed.

Description sent to AI tools

Safely removes a container. Optionally preserves children by moving them to the parent at the same position. Can require confirmation for complex structures.

Edit Elementor Container Styles

hostinger-ai/elementor-edit-container · Changes the site · Safe to retry

Updates container styling: background (color, image, gradient or video via the "background" object), padding/margin, border (radius/width/color/style), opacity, z-index.

Required parameter
Type
Description

post_id

integer

The ID of the post/page to modify

container_id

string

The ID of the target container

Optional parameters (12)
Parameter
Type
Default
Description

background

object

Full background definition (color, image, gradient or video). Replaces any existing background on the container. Use type "none" to remove the background. Takes precedence over background_color.

device

one of desktop, tablet, mobile

desktop

Target device for responsive settings

background_color

string

Shorthand to set a solid color background (equivalent to background.type=color). Warning: this replaces any existing video/image/gradient background on the container with a solid color. For video/image/gradient backgrounds use the "background" object instead.

padding

Padding in px (number for all sides) or object with sides and unit

margin

Margin in px (number for all sides) or object with sides and unit

border_radius

Border radius (number for all corners) or object with corners and unit

border_width

Border width (number for all sides) or object with sides and unit

border_color

string

CSS color value for border

border_style

one of none, solid, dashed, dotted, double

Border style

opacity

number

Opacity (0..1)

z_index

integer

Z-index

css_class

string

Optional CSS class to assign/update on the container

Description sent to AI tools

Updates container styling: background (color, image, gradient or video via the "background" object), padding/margin, border (radius/width/color/style), opacity, z-index. Supports responsive device targeting. Setting any background replaces the container's existing background — use elementor-get-page-structure to check the current background first so you do not overwrite an existing video/image.

Find Elementor Widgets

hostinger-ai/elementor-find-widgets · Read-only

Searches for specific widget types in an Elementor page structure.

Required parameter
Type
Description

post_id

integer

The ID of the post/page to search in

widget_types

array of string

Array of widget types to search for (e.g., ["button", "heading", "image"])

Optional parameters (3)
Parameter
Type
Default
Description

max_depth

integer

10

Maximum search depth. Default: 10

include_settings

boolean

true

Whether to include widget settings. Default: true

css_class_filter

string

Optional CSS class to filter by (e.g., "hostinger-ai-*")

Description sent to AI tools

Searches for specific widget types in an Elementor page structure. Returns all widgets matching the criteria with their settings and position.

Get Elementor Active Kit

hostinger-ai/elementor-get-active-kit · Read-only

Retrieves the active Elementor kit with all settings including global colors, typography presets, custom CSS, and theme style settings.

No required parameters.

Optional parameters (3)
Parameter
Type
Default
Description

include_colors

boolean

true

Include global colors in response. Default: true

include_typography

boolean

true

Include global typography in response. Default: true

include_settings

boolean

false

Include all other kit settings. Default: false

Get Elementor Kit by ID

hostinger-ai/elementor-get-kit-by-id · Read-only

Retrieves a specific Elementor kit by post ID with all settings including global colors, typography presets, and theme style settings.

Required parameter
Type
Description

kit_id

integer

The post ID of the Elementor kit

Optional parameters (3)
Parameter
Type
Default
Description

include_colors

boolean

true

Include global colors in response. Default: true

include_typography

boolean

true

Include global typography in response. Default: true

include_settings

boolean

false

Include all other kit settings. Default: false

Get Elementor Page Structure

hostinger-ai/elementor-get-page-structure · Read-only

Returns a readable, hierarchical summary of Elementor page structure without raw JSON.

Required parameter
Type
Description

post_id

integer

The ID of the post/page to get structure for

Optional parameters (2)
Parameter
Type
Default
Description

max_depth

integer

10

Maximum recursion depth to display. Default: 10

include_settings

boolean

false

Whether to include settings. Default: false

Description sent to AI tools

Returns a readable, hierarchical summary of Elementor page structure without raw JSON. Shows containers and widgets in a tree view. Each container reports its existing background (video/image/gradient/color) in a "background" field — always check this before suggesting or adding a background, so you do not overwrite an existing video/image background.

Get Elementor Widget by ID

hostinger-ai/elementor-get-widget-by-id · Read-only

Retrieves complete information about a specific Elementor widget by its unique ID, including all settings, position, and parent information.

Required parameter
Type
Description

post_id

integer

The ID of the post/page containing the widget

widget_id

string

The unique ID of the widget to retrieve

List Elementor Pages

hostinger-ai/elementor-list-pages · Read-only

Retrieves all posts/pages/custom post types that use Elementor builder.

No required parameters.

Optional parameters (4)
Parameter
Type
Default
Description

post_type

one of page, post, any

any

Filter by post type (page, post, any). Default: any

post_status

one of publish, draft, pending, private, any

any

Filter by post status (publish, draft, any). Default: any

limit

integer

50

Number of pages to return. Default: 50

offset

integer

0

Number of pages to skip for pagination. Default: 0

Description sent to AI tools

Retrieves all posts/pages/custom post types that use Elementor builder. Supports filtering by post type and status with pagination.

List Elementor Templates

hostinger-ai/elementor-list-templates · Read-only

Retrieves Elementor templates from the elementor_library post type.

No required parameters.

Optional parameters (3)
Parameter
Type
Default
Description

post_status

one of publish, draft, pending, private, any

any

Filter by post status (publish, draft, any). Default: any

limit

integer

50

Number of templates to return. Default: 50

offset

integer

0

Number of templates to skip for pagination. Default: 0

Description sent to AI tools

Retrieves Elementor templates from the elementor_library post type. Results include the template type and support pagination.

Update Elementor Container

hostinger-ai/elementor-update-container · Changes the site · Safe to retry

Updates container layout and structure settings like layout, direction, content width, alignment, spacing, and number of inner columns.

Required parameter
Type
Description

post_id

integer

The ID of the post/page to modify

container_id

string

The ID of the target container

Optional parameters (12)
Parameter
Type
Default
Description

layout

one of flex, grid

Container layout type

direction

one of row, column

Flex direction (row or column). Applies to flex layout.

content_width

one of boxed, full_width

Content width behavior for the container

css_class

string

Optional CSS class to assign/update on the container

align_items

one of flex-start, center, flex-end, stretch, baseline

Cross‑axis alignment for flex containers

justify_content

one of flex-start, center, flex-end, space-between, space-around, space-evenly

Main‑axis alignment for flex containers

gap

number

Overall gap between child items (px)

row_gap

number

Row gap for grid or multi‑row flex (px)

column_gap

number

Column gap for grid or flex (px)

columns

integer

Target number of inner columns (containers)

preserve_children

boolean

true

When reducing columns, keep removed columns’ children by moving them into a remaining column

distribute_children

one of first, last, even

even

If preserving children, where to place them into remaining columns

Update Elementor Global Styles

hostinger-ai/elementor-update-global-styles · Changes the site · Safe to retry

Updates Elementor global colors and/or typography presets in the active kit in a single call.

No required parameters.

Optional parameters (2)
Parameter
Type
Description

colors

array of object

List of global color updates

typography

array of object

List of typography preset updates

Description sent to AI tools

Updates Elementor global colors and/or typography presets in the active kit in a single call. Intended for intents like "Change primary color to red" and "Change heading font to Arial" with one request. Triggers site-wide CSS regeneration.

Update Elementor Widget Content

hostinger-ai/elementor-update-widget-content · Changes the site · Safe to retry

Safely updates text content of Elementor widgets (heading, button, text-editor).

Required parameter
Type
Description

post_id

integer

The ID of the post/page containing the widget

widget_id

string

The unique ID of the widget to update

content

string

The new content text

Description sent to AI tools

Safely updates text content of Elementor widgets (heading, button, text-editor). Updates text/title/editor fields while preserving all other settings.

Update Elementor Widget Image

hostinger-ai/elementor-update-widget-image · Changes the site · Safe to retry

Updates an Elementor image widget source.

Required parameter
Type
Description

post_id

integer

The ID of the post/page containing the widget

widget_id

string

The unique ID of the image widget to update

image_url

string

The new image URL. Must be a real, currently reachable URL that returns HTTP 200 (not a 404, placeholder, or made-up URL). Use a WordPress media library URL - sideload external images with media-upload-from-url first to avoid broken images.

Optional parameters (2)
Parameter
Type
Description

image_id

integer

Optional but recommended: WordPress media library attachment ID (from media-search or media-list). Using a media library image is the most reliable way to avoid 404 images. When provided, it should match image_url.

alt_text

string

Optional: Image alt text for accessibility

Description sent to AI tools

Updates an Elementor image widget source. IMPORTANT: only use an image_url that is publicly reachable and returns HTTP 200 - never a placeholder or hallucinated URL, as this causes broken (404) images. Do not invent image URLs. Never hotlink an external image straight into a widget, because external URLs can expire and break. To use an image from the web, first sideload it with media-upload-from-url, then pass the returned attachment id as image_id and its url as image_url. To reuse an existing image, find it with media-search or media-list and pass its image_id.

hostinger-ai/elementor-update-widget-link · Changes the site · Safe to retry

Updates link URLs in buttons and other link-capable Elementor widgets.

Required parameter
Type
Description

post_id

integer

The ID of the post/page containing the widget

widget_id

string

The unique ID of the widget to update

url

string

The new link URL

Optional parameters (2)
Parameter
Type
Default
Description

is_external

boolean

false

Optional: Open link in new tab

nofollow

boolean

false

Optional: Add nofollow attribute

Description sent to AI tools

Updates link URLs in buttons and other link-capable Elementor widgets. Supports external and nofollow attributes.

Update Elementor Widget Styles

hostinger-ai/elementor-update-widget-styles · Changes the site · Safe to retry

Updates visual styles of Elementor widgets including colors, typography, spacing (padding/margin), borders, and alignment.

Required parameter
Type
Description

post_id

integer

The ID of the post/page containing the widget

widget_id

string

The unique ID of the widget to update

styles

object

Style properties to update. All properties are optional. Only provide the properties you want to change.

Description sent to AI tools

Updates visual styles of Elementor widgets including colors, typography, spacing (padding/margin), borders, and alignment. Supports both direct values and responsive settings.

Last updated

Was this helpful?