import { Aside } from ‘@astrojs/starlight/components’;
Elementor tools let agents read, build, and surgically edit page layouts. Available on all plans.
| Tool | Description |
|---|
wp_get_elementor | Get full Elementor JSON for a page |
wp_get_elementor_summary | Quick structure overview (no full JSON) |
wp_preview_elementor | Get rendered HTML preview |
wp_get_elementor_bulk | Get Elementor data for multiple pages |
wp_elementor_status | Elementor version and layout mode |
| Tool | Description |
|---|
wp_set_elementor | Replace full page Elementor data |
wp_patch_elementor | Patch specific fields in the data |
wp_edit_section | Edit one section by ID |
wp_add_section | Add a new section at a position |
wp_remove_section | Delete a section |
wp_replace_section | Replace a section entirely |
wp_edit_widget | Edit one widget’s settings |
wp_bulk_find_replace | Find and replace text across all pages |
| Tool | Description |
|---|
wp_get_kit_css | Read global kit CSS |
wp_set_kit_css | Write global kit CSS |
wp_get_custom_css | Read page-level custom CSS |
wp_set_custom_css | Write page-level custom CSS |
wp_regenerate_elementor_css | Rebuild CSS cache after bulk changes |
| Tool | Description |
|---|
wp_get_elementor_widgets | List all registered widget types |
wp_get_widget_schema | Get valid settings keys for a widget type |
wp_elementor_widget_help | Get 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.