Build Elementor popup
build_popupBuild import-ready Elementor v4 popup JSON with configurable triggers, entrance/exit animations, and timing rules.
Instructions
Compile a popup blueprint into import-ready Elementor v4 JSON with popup triggers, entrance/exit animations, and timing rules in page_settings. Use type: 'popup' with a popup config. The popup content goes in the tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | No | Content tree for the popup body (same blueprint nodes as pages). | |
| theme | No | Theme object from generate_theme. | |
| title | Yes | Popup title (shown in Elementor). | |
| timing | No | Array of { type: 'times'|'days'|'sessions'|'devices', settings: {...} }. E.g. times: { count: 1, period: 'session' }. | |
| fileName | No | Output file name (without extension). | |
| triggers | No | Array of { type: 'page_load'|'scrolling'|'click'|'exit_intent', settings?: {...} }. E.g. scrolling needs { offset: 25 }, click needs { selector: '.my-trigger' }. | |
| outputDir | No | Directory to write into. Defaults to $ELEMENTOR_MCP_OUT or ./output. | |
| exitAnimation | No | Exit animation name, e.g. 'fadeOut'. | |
| entranceAnimation | No | Entrance animation name, e.g. 'fadeIn', 'slideInDown'. |