Skip to content

Elementor Tools

import { Aside } from ‘@astrojs/starlight/components’;

Elementor tools let agents read, build, and surgically edit page layouts. Available on all plans.

ToolDescription
wp_get_elementorGet full Elementor JSON for a page
wp_get_elementor_summaryQuick structure overview (no full JSON)
wp_preview_elementorGet rendered HTML preview
wp_get_elementor_bulkGet Elementor data for multiple pages
wp_elementor_statusElementor version and layout mode
ToolDescription
wp_set_elementorReplace full page Elementor data
wp_patch_elementorPatch specific fields in the data
wp_edit_sectionEdit one section by ID
wp_add_sectionAdd a new section at a position
wp_remove_sectionDelete a section
wp_replace_sectionReplace a section entirely
wp_edit_widgetEdit one widget’s settings
wp_bulk_find_replaceFind and replace text across all pages
ToolDescription
wp_get_kit_cssRead global kit CSS
wp_set_kit_cssWrite global kit CSS
wp_get_custom_cssRead page-level custom CSS
wp_set_custom_cssWrite page-level custom CSS
wp_regenerate_elementor_cssRebuild CSS cache after bulk changes
ToolDescription
wp_get_elementor_widgetsList all registered widget types
wp_get_widget_schemaGet valid settings keys for a widget type
wp_elementor_widget_helpGet usage tips for a specific widget
  • Always call wp_get_widget_schema('heading') before setting widget settings — wrong keys silently break rendering
  • Use wp_edit_widget for surgical edits instead of replacing the whole page
  • After bulk CSS changes, call wp_regenerate_elementor_css
  • Every element needs a unique 8-character id — the plugin auto-generates missing ones

→ See Elementor Data Format for the full JSON structure guide.