AddSynapse: draft a page, header, footer or template edit
plan_blocks_editAddSynapse: Prepare a DRAFT of changes to the blocks of ONE document — a page, post or synced pattern (page_id), a block-theme template (template = slug: single-product, archive-product, page, single, home, index…) or template part (template_part = slug: header, footer…), or the homepage (front_page) — (Undo restores the exact previous version; a theme template customised by Approve goes back to the theme's own version on Undo). Read the document with describe_blocks first and use its block ids (valid for every operation of the same plan). operations (1–20, in order): set_attrs {block, attrs}: merge block attributes (null removes) — colors textColor/backgroundColor (palette slugs) or style.color.text/background (CSS colors), fontSize/fontFamily (slugs) or style.typography.* (fontSize, fontWeight, lineHeight, letterSpacing, textTransform), style.spacing.padding/margin {top,right,bottom,left} (2rem, 24px or var:preset|spacing|50), style.border (radius, width, color), style.dimensions.minHeight, align (wide|full), textAlign, className, layout {type, justifyContent, contentSize}, heading level, column width, cover dimRatio/overlayColor/customOverlayColor/minHeight, and ANY attribute of dynamic blocks (site logo width, navigation overlayMenu, query, product blocks…); set_text {block, text}: paragraph/heading/list item/verse (inline HTML: strong, em, a, br, span) or a button label; set_link {block, url}; set_image {block, image_id (media library), alt}: image, cover, media & text; insert {where before|after|inside_first|inside_last|top|bottom, anchor (block id; not for top/bottom), and ONE of: blocks (structured, preferred — [{name, attrs, text, url, image_id, alt, inner[]}] for core/group, columns, column, heading, paragraph, list, list-item, buttons, button, image, cover, spacer, separator, quote: the site writes the exact markup the block editor expects), pattern (a registered pattern name from describe_site_design), synced_pattern (an id), markup (complete serialized block markup, only for other blocks)}; replace {block, blocks | pattern | markup}; move {block, where, anchor}; duplicate {block}; remove {block}. Images only from the media library; no scripts, styles or iframes. Site-wide colors/fonts/spacing → plan_global_styles; site title, tagline, logo and classic-theme options → plan_theme_settings; Elementor content → plan_elementor_edit. 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_blocks_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 | ||
| template | No | ||
| front_page | No | ||
| operations | Yes | ||
| template_part | No |