AddSynapse: draft an Elementor page edit
plan_elementor_editAddSynapse: Prepare a DRAFT of changes to ONE document built with Elementor — a page (page_id or front_page), a saved template, or an Elementor Theme Builder header / footer / single / archive template (page_id = its id from describe_site_design, elementor.theme_builder; a header or footer shows on every page it applies to) — (Undo restores the exact previous version; Elementor's CSS is regenerated). Read the document with describe_blocks first and use its element ids. operations (1–20, in order): set_settings {element, settings{key: value|null}}: Elementor settings of any element, e.g. heading title, header_size (h1–h6), align, title_color, typography_typography "custom" + typography_font_family / typography_font_size {unit, size} / typography_font_weight; text-editor editor (HTML), text_color; button text, link {url}, button_text_color, background_color, border_radius {unit, top, right, bottom, left, isLinked}, size (xs|sm|md|lg|xl); image image {id}, width {unit, size}; container / section background_background "classic" + background_color, padding / margin {unit, top, right, bottom, left, isLinked}, min_height {unit, size}, flex_direction, flex_justify_content, flex_align_items, content_width; hide_desktop / hide_tablet / hide_mobile "hidden-desktop"…; link a color to a global color with globals {"title_color": "globals/colors?id=primary"} (global ids from describe_site_design elementor.colors / fonts). set_text {element, text}: heading / text-editor (inline HTML) / button / icon-box / image-box / testimonial main text. set_link {element, url}. set_image {element, image_id (media library), alt}: image / image-box widgets or a container / section / column background. insert {where before|after|inside_first|inside_last|top|bottom, anchor (element id; not for top/bottom), elements [{elType container|widget (a page built with sections: send a section with columns, or a container — it becomes a section with columns; inside an existing block, anchor = its column), widgetType heading|text-editor|button|image|icon-list|spacer|divider|icon|icon-box|image-box|testimonial|star-rating|video|html, settings, elements[]}]} — a widget at top / bottom is wrapped in a container automatically. move {element, where, anchor}. duplicate {element}. remove {element}. Code (Store Assistant 1.3.14+, needs a WordPress user allowed to post unfiltered HTML): custom_css of an element (Elementor Pro only; write selector{…} for the element itself), the html widget (widgetType html, settings html: HTML without script / style / on* attributes; iframe only https YouTube / Vimeo embeds; images only from this site), _attributes "name|value" one per line (Elementor Pro only), link.custom_attributes. Scripts and shortcodes stay closed. Without Elementor Pro, site-wide or page CSS goes to plan_theme_settings Additional CSS (e.g. .page-id-N …). describe_blocks with block= gives the full current value. Images only from the media library. Global colors and fonts → plan_elementor_kit. Changes nothing by itself: a preview card with the before → after list and an Approve button appears in the chat; nothing changes on the site until the user presses Approve there, and every applied change can be undone exactly. Before calling it, say in plain words what will change and get the user's agreement. Put every edit of this request in ONE call (up to 20 operations on this document) — the user approves them together with one click and can undo them together; never one call per item.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operations": "<operations>"
},
"name": "plan_elementor_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Which connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site. | |
| page_id | No | ||
| front_page | No | ||
| operations | Yes |