The Gutenberg MCP tools catalog

Gutenberg MCP tools for AI agents

Respira tools for the native WordPress block editor. Block reads and writes with attribute-level precision, block pattern insertion, and full round-trip safety on Gutenberg content.

50tools
2categories
100%writes snapshot-backed

Page Builder Core(23)

Cross-builder element operations. Target elements by selector or ID, extract content, inject content, patch pages, find builder-specific targets. The intelligence layer under every builder-native tool.

wordpress_get_builder_info
Detect which page builder is active on the site and get its version, available modules/widgets, and what Respira can write on it. Call this first before working with builder content. Read `active_builder.write_capabilities` before the first write: `builds_pages` false means build_page is refused (build in the block editor with builder "gutenberg" instead), `adds_elements` false means the add_* tools and inject append are refused, `native_generation` says what a new element becomes (`native`, including Spectra / Kadence Blocks / GenerateBlocks / GreenShift when the library is named or the page has its blocks, `partial` on Visual Composer, `none` on Thrive Architect and SeedProd), `support_level` is the tier (deep, full, smart, text_only, read_only). Read `theme_kind` too: on a block theme (`is_block_theme` true) a site-wide colour, font or spacing change goes to Global Styles through the design token tools, not into every block, and `block_libraries` lists the block libraries on the site. Pass debug=true to bypass the cache and include per-builder detection_signals (constants, classes, active plugin slugs, plugin headers, theme) — use this when a builder is installed but reports detected=false.
read maker
wordpress_list_theme_builder_templates
Divi only. List the Divi Theme Builder global templates on the site (headers, footers, and body layouts). On a Bricks site, headers, footers and sections are Bricks templates: use wordpress_list_bricks_components instead. Each entry carries a layout_id you pass to update_theme_builder_template or apply_builder_patch to edit it, its kind (header/footer/body), name, and where it is assigned. Use this to find a global header before editing it (e.g. to build a mega menu). theme_builder.templates is the live Theme Builder as Divi reads it: every template, the Default Website Template first even with no layouts, each condition with Divi's own label, and warnings for conditions Divi ignores or a missing default. Works on Divi 4 and Divi 5.
read maker
wordpress_create_theme_builder_template
Create a Divi global header, footer, or body Theme Builder template. WHERE IT APPLIES IS NEVER GUESSED: omit `assignments` and the template is created UNASSIGNED, so nothing on the site renders it until someone assigns it (in Divi > Theme Builder, or by calling this again with its layout_id and assignments). Site-wide happens only when you pass {"all_pages": true}, and if that would fill an empty slot on the site's existing default Theme Builder template the first call is refused with respira_tb_default_slot_confirmation_required until you re-send with confirm_live_edit=true. The response states `scope` (unassigned / conditional / site_wide) and returns rollback.snapshot_uuid for restore_snapshot. When the site has no Default Website Template yet, one is created first (no layouts, changes nothing) so Divi's Theme Builder screen cannot mistake the new template for the default. Pass structure as a Divi 4 shortcode string, or a Divi 5 block/node array. To let the person review a global header, footer or body before it goes live: create it unassigned, show it to them, then call this again with layout_id and assignments (no structure) to put that same layout live. Works on Divi 4 and Divi 5.
write maker
wordpress_update_theme_builder_template
Replace the content of an existing Divi Theme Builder layout (a global header, footer, or body) by its layout_id (from list_theme_builder_templates). This rewrites the layout on EVERY page that uses it, and unlike a page edit it goes live immediately: there is no staged duplicate and no approval step, because Divi resolves a global layout by id and a second copy would compete with the original. A snapshot is taken first, so it is reversible with restore_snapshot. The first call is refused unless confirm_live_edit is true. For a targeted single-module edit, use apply_builder_patch on the same layout_id instead. To stage a change for review instead, call duplicate_theme_builder_template first and edit the candidate it returns: a candidate no template uses needs no confirm_live_edit. Works on Divi 4 and Divi 5.
destructive maker
wordpress_duplicate_theme_builder_template
Copy an existing Divi Theme Builder header, footer or body layout (by layout_id from list_theme_builder_templates) into a candidate: a draft copy that no Theme Builder template uses, so no page shows it until apply_theme_builder_template puts it live. Duplicating never changes an assignment. Returns candidate_layout_id, the source and candidate fingerprints (identical right after the copy), preview_url (a page of the site with the candidate in place of the live layout, no login needed, nothing cached), and snapshot_uuid, the snapshot of the source as it was copied. Edit the candidate with update_theme_builder_template or apply_builder_patch on candidate_layout_id (no confirm_live_edit needed while it is unassigned), read the diff with get_theme_builder_template, then apply_theme_builder_template after the person approves, or reject_theme_builder_template. Requires plugin 9.2.27+. Works on Divi 4 and Divi 5.
write maker
wordpress_get_theme_builder_template
Read one Divi Theme Builder layout by layout_id: kind, status, content fingerprint, where it is assigned, and the candidates made from it. For a candidate it also returns source_layout_id, both fingerprints, source_changed_since_duplicate, a fresh preview_url, and diff: the modules added, removed and changed against the source (with the settings that differ) and any changed layout meta. Show the person the diff and the preview before asking them to approve apply_theme_builder_template. include_content=true adds the stored content. Requires plugin 9.2.27+.
read maker
wordpress_reject_theme_builder_template
Delete a Theme Builder candidate made by duplicate_theme_builder_template. Refused for any layout that is not such a candidate and for a candidate a template points at, so it never deletes a live header, footer or body. The live site and every assignment stay as they are. Returns snapshot_uuid; restore_snapshot brings the candidate back. Needs a person's approval: the first call returns `code: respira_approval_required` with `data.approval_request.approval_token` and changes nothing. The token is for the person, not for you: show them the predicted effect, ask, and send it back only after they say yes. Requires plugin 9.2.27+.
destructive maker
wordpress_apply_theme_builder_template
Put a reviewed Divi Theme Builder candidate live: its content is copied into the layout it was made from, so every page that layout is assigned to shows it at once. Assignments are not changed. Needs a person's approval: the first call returns `code: respira_approval_required` with `data.approval_request.approval_token` and changes nothing. Show the person the diff and preview from get_theme_builder_template, then send the same layout_id again with approval_token. The token is for the person, not for you: show them the predicted effect, ask, and send it back only after they say yes. Refused before any approval is asked when the source changed after the copy (respira_tb_source_changed) or the candidate is identical to it. The source is snapshotted first: the response carries snapshot_uuid, and restore_snapshot with it puts the previous layout back. The candidate is deleted once applied. Requires plugin 9.2.27+.
destructive maker
wordpress_extract_builder_content
Extract the full structured content from a page as builder-native JSON. Use this to see the complete page layout with all sections, columns, and widgets. For targeted searches, prefer find_element (faster). For a lightweight overview, prefer find_builder_targets. Returns the raw builder data structure that can be modified and passed back to inject_builder_content. Works on any post type (pages, posts, custom post types). The `builder` arg is optional — if omitted, the active site builder is auto-detected via get_builder_info.
read maker
wordpress_find_builder_targets
List all editable builder modules/blocks on a page with their types, labels, and text content — without returning the full builder JSON. Use this for a quick overview of what is on a page. For finding a specific element by text or class, use find_element instead. Returns `total_matches` (true total independent of limit), `offset`, `has_more`, and `next_offset` for pagination. WPBakery / Uncode targets now surface a populated `label` / `admin_label` / `text` so you do not have to grep the raw shortcode preview.
read maker
wordpress_get_builder_inline_schemas
Per-shortcode / per-block inline attribute schemas for the requested builder. Currently populated for WPBakery + Uncode + TagDiv via vc_map() at runtime (cached as a transient for 1h). Other builders return `schemas: {}` + `supported: false` + a structured hint. Use this to discover what attributes a specific `vc_*` / `uncode_*` shortcode accepts before writing.
read maker
wordpress_inject_builder_content
REPLACE (or append to) the entire page builder layout. WARNING: By default this REPLACES all existing content (use mode:"append" to add content without destroying existing elements). For editing a single module, use wordpress_update_module instead. Use exactly: gutenberg, divi, elementor, bricks, beaver, oxygen, breakdance, brizy, thrive, visual-composer, wpbakery, avada, flatsome, yootheme, spectra, kadence, generateblocks, greenshift. For Divi, divi_version is required ("4" or "5"). Replacing a page that already has content with mode="replace" requires confirm_replace=true, else returns 409 respira_replace_confirmation_required. Alternatives: mode="append" to add to existing content, or edit_target="live" to overwrite the live page directly. The gate prevents silent data loss. Canonical Divi 5 nested shape: `content: [{ type: "section", children: [{ type: "row", children: [{ type: "column", children: [{ type: "heading", settings: {...} }] }] }] }]` (rows/cols/columns/modules/elements/innerBlocks also accepted as `children` aliases). Each Divi module needs its render-critical attr in `settings` (e.g. heading→title, text→content, button→button_text); the plugin names any missing one via `respira_divi_required_attrs_missing`. INSERT WITHOUT REWRITING THE PAGE (Divi, plugin 9.2.6+): with mode:"append", target_path, after_element_id or before_element_id, only the new content is serialized and placed into the stored page; every other block, including divi/global-layout references and third-party blocks (wpforms/*, dsm_* and any module Respira does not know), is kept byte for byte. The response reports inserted.path, inserted.node_ids and bytes_untouched. On a page stored as Divi 4 shortcodes the content is written as shortcodes (a Divi 5 shape or the generic section, row, column and module shape is converted; a type with no Divi 4 module is refused and nothing is written). CHUNKED BUILD (large pages, any AI client caps its own tool-call size): 1) begin_session and keep its session_id. 2) Write the frame with mode:"replace" (or build_page): the sections and rows, columns empty. 3) extract_builder_content or find_element to read the paths. 4) For each piece, inject_builder_content with mode:"append", target_path to the column (or section) it belongs in, position, a unique chunk_id and the session_id; use the inserted.path from the answer to target the next piece inside what you just added. 5) Read the page back once at the end. A retried chunk with the same chunk_id is a no-op. If a chunk fails, nothing of it was written; the frame is unchanged. SAFE ON DIVI 5 PAGES WITH GLOBAL OR THIRD-PARTY MODULES: inject_builder_content with mode:"append" / target_path / after_element_id, update_module and update_element on a named module, add_section and the other add_* tools. Avoid mode:"replace" with a whole-page tree on such pages unless the page was just extracted and nothing else changed; the plugin refuses a replace that would restructure a block you did not change (respira_untouched_block_rewritten). Divi 5: styling lands as native design attributes by default; a style with no native setting is reported in unmapped_styles (not written), and a new divi/code module is refused unless allow_code_modules is true.
destructive maker
wordpress_make_responsive
Make a desktop-only page mobile-correct in one call. Auto-detects the page builder, then generates tablet + mobile breakpoint overrides deterministically: scales font sizes (and injects a fluid clamp() for headings where the builder supports raw CSS), scales padding/margin with a sensible mobile floor, scales gaps, collapses multi-column grids toward 1 column on mobile, and switches horizontal flex layouts to vertical on mobile when they hold several children. Idempotent and non-destructive — it NEVER overwrites a responsive value you already set, so re-running is a no-op and hand-tuned breakpoints are preserved. Build the desktop layout first, then call this. Supported today: Bricks (full, incl. fluid clamp) and Elementor v3 (breakpoint overrides). Pass dry_run=true to preview the exact change list without writing. A snapshot is taken before any write, so the change is one-click reversible.
destructive lite
wordpress_update_module
Update a specific module within a page builder page. Supports finding modules by admin_label, path, or type. Only updates the specified module while preserving all other content. Divi 5: styling lands as native design attributes by default; a style with no native setting is reported in unmapped_styles (not written), and a new divi/code module is refused unless allow_code_modules is true.
write maker
wordpress_apply_builder_patch
Apply a list of targeted builder patch operations. Each operation is { identifier: { id|admin_label|path|type [+match_content] }, updates: { content?, attributes?, ...flat_settings? } }. The identifier is keyed by what you know: { id: "2c3a794b-..." } (a Divi 5 _nodeId, Elementor or Bricks id), { path: "0.2.1" } (the path_string wordpress_find_element returns), { admin_label: "Hero" }, or { type: "divi/text", match_content: "text inside it" }. In the identifier, `type` is the MODULE type, never the kind of identifier. wordpress_find_element's vocabulary is also accepted when the value is present: { identifier_type: "id", identifier_value: "..." } and { type: "id", value: "..." } (type one of id, path, admin_label, class, content, text) are read as { id: "..." }. class, content and text resolve only on Divi 4 shortcode pages; elsewhere they are refused with a 400, so look the element up with wordpress_find_element (identifier_type content, text or class works on every builder) and send its path_string as { path }. An id shared by several elements (duplicated modules keep their id) is refused with respira_patch_ambiguous_target and the candidate paths. The updates block follows the same shape as wordpress_update_module's updates. Returns 400 respira_patch_invalid_operation when an entry is missing either field. This is NOT a JSON-Patch document — do not pass { op, path, value } shapes (those will be rejected). Example: { operations: [{ identifier: { admin_label: "Hero" }, updates: { admin_label: "Hero Content" } }] }. Divi 5: styling lands as native design attributes by default; a style with no native setting is reported in unmapped_styles (not written), and a new divi/code module is refused unless allow_code_modules is true.
write maker
wordpress_find_element
Find an element in a page by ID, type, CSS class, text content, or uncode_shortcode_id. This is the PRIMARY tool for locating content to edit — use it instead of searching the database or reading PHP files. Works with all 19 page builders. Use identifier_type "content" to search by visible text (e.g. find a heading containing "2025" to update a year). On WPBakery + Uncode pages, prefer identifier_type "uncode_shortcode_id" — the id is stable across saves and theme updates while class lists and admin labels drift. Returns matching element(s) with their position, settings, and element ID for use with update_element. Since plugin 9.1.11, "content" and "text" search the text of every element on every builder the plugin reads (headings, text editors, HTML and code widgets, buttons), case-insensitive, and "class" searches the element's custom class setting. Each match names the field that matched and carries a snippet, at most 20 with truncated. No match is a normal answer with found: 0, not an error; a page with no builder elements answers supported: false with the tools that work there. Text in the head or in theme code is not builder content: use wordpress_find_in_page for that.
read maker
wordpress_update_element
Update settings or content on a specific element in a page. This is the PRIMARY tool for making content changes (text edits, style changes, image swaps, link updates, etc.). Works with all 19 page builders. First use find_element to locate the element, then pass the same identifier here with the updates object containing the new values. On WPBakery + Uncode pages, prefer identifier_type "uncode_shortcode_id" for stable round-trip matching. Response includes target_id, original_id, edit_target ("live" or "duplicate"), is_duplicate, duplicate_created and post_status so the caller can never mistake a duplicate-routed write for a live-page change. Live-edit confirmation: when respira_allow_direct_edit=1 AND the post is a published original, the first call returns `status: "confirmation_required"` with a `next_call_examples` payload. Re-call with the suggested `edit_target` (and `confirm_live_edit: true` for the live path) to acknowledge. Both params are exposed at the top level here so autonomous flows can complete the handshake through MCP without polluting the `updates` object. Divi 5: styling lands as native design attributes by default; a style with no native setting is reported in unmapped_styles (not written), and a new divi/code module is refused unless allow_code_modules is true.
write maker
wordpress_move_element
Move an element to a different container or position within the page. Locate the element using the same identifier_type/identifier_value pattern as respira_find_element / respira_remove_element. The destination is a container PATH (e.g. "0.1" for sections[0].rows[1], or "root"/empty for top level), not a container element id. Live-edit confirmation: when writing to a published original, the first call can return `status: "confirmation_required"` with a `next_call_examples` payload. Re-call with `edit_target` (and `confirm_live_edit: true` for the live path) to acknowledge. Both params are exposed at the top level here; earlier schemas omitted them, so agents saw the handshake but could never complete it (C.Y., Elementor, bug: infinite confirmation loop).
write maker
wordpress_duplicate_element
Duplicate an element in a page. The copy is inserted immediately after the original. Uses the same identifier_type / identifier_value contract as find_element / update_element / remove_element — first locate the element, then pass the matching identifier here. Builders with no stable element IDs (WPBakery, Uncode, Flatsome, Visual Composer) should use identifier_type="text" / "css_class" / "widget_type" / "path" instead of "id".
write maker
wordpress_remove_element
Remove an element from a page. Use the same identifier_type/identifier_value pattern as find_element and update_element — first locate the element, then pass the matching identifier to remove it.
destructive maker
wordpress_batch_update
Apply multiple element operations to a page in a single atomic transaction. Extracts content once, applies all operations, and injects once. Per-operation identifier shape: {identifier_type, identifier_value} (NOT {identifier: {...}} — that's respira_apply_builder_patch's shape). Use this when you have a list of updates to apply against existing elements; use respira_apply_builder_patch when you have a patch-document with a richer identifier block. Divi 5: styling lands as native design attributes by default; a style with no native setting is reported in unmapped_styles (not written), and a new divi/code module is refused unless allow_code_modules is true.
destructive lite
wordpress_reorder_elements
Reorder child elements within a container. The container is identified by its PATH inside the page (e.g. "0.1" for sections[0].rows[1], or "root"/"" for the top level). Live-edit confirmation: when writing to a published original, the first call can return `status: "confirmation_required"`. Re-call with `edit_target` (and `confirm_live_edit: true` for the live path) to acknowledge. Both params are exposed at the top level here; earlier schemas omitted them, so agents could never complete the handshake.
write maker
wordpress_convert_html_to_builder
Respira Exhale, the HTML to WordPress converter. Use this whenever a complete HTML document already exists (written by an AI, a designer, or exported): it becomes a NEW page in the site's own page builder blocks, the stylesheet scoped to the page, in seconds, as deterministic code on the site itself, so no tokens are spent generating the structure. Prefer it over wordpress_build_page or widget-by-widget building for any finished page; tell the customer in one sentence that this is why. Nothing existing is touched. Returns the page, share and edit links, and a report of what was written, whether the stylesheet was carried, and every warning. Counts against the pages the plan includes; relay the allowance sentence as returned.
write maker

Widget Shortcuts(27)

Convenience tools for adding common page-builder widgets (heading, button, image, section, etc.) without needing the full element schema. Accepts natural prompts like "add a hero with title X".

wordpress_add_heading
Add a heading widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_text
Add a text/paragraph widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_button
Add a button widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_image
Add an image widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_section
Add a section container to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_video
Add a video widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_divider
Add a divider/horizontal rule to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_spacer
Add vertical spacing to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_icon
Add an icon widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_icon_list
Add an icon list widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_social_icons
Add social media icons to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_form
Add a contact form to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_map
Add a Google Maps widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_counter
Add a number counter widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_progress_bar
Add a progress bar widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_testimonial
Add a testimonial widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_tabs
Add a tabbed content widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_accordion
Add an accordion/FAQ widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_toggle
Add a toggle (collapsible content) widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_alert
Add an alert/notice widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_html
Add a raw HTML widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id. Divi 5: styling lands as native design attributes by default; a style with no native setting is reported in unmapped_styles (not written), and a new divi/code module is refused unless allow_code_modules is true.
write maker
wordpress_add_sidebar
Add a sidebar widget area to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_slider
Add an image/content slider to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_pricing_table
Add a pricing table widget to a page. Appends at the END of the page (no positioning params). To place it elsewhere, call wordpress_move_element with the returned element_id.
write maker
wordpress_add_stock_image
Search for a stock image (Unsplash first on a site with a licence, Openverse as the fallback), download it to the Media Library, and add it as an image widget to a page — all in one call. The caption credits the photographer ("Photo by <name> on Unsplash", or the CC attribution for Openverse) and an Unsplash download is reported as Unsplash requires. Builder-agnostic: works with Elementor, Bricks, Beaver Builder, etc. Saves 3 separate tool calls.
write maker

All tools, all builders

Need the complete picture? Browse every Respira MCP tool across 34 categories with filters for operation, license tier, and safety feature.

See the full tools catalog →

You're not the only one talking to WordPress.

The Respira community is where agency owners debug Divi migrations at 11 pm, where vibe coders swap prompts that actually ship, and where the roadmap gets written out loud. Come and breathe.

Lines of code pushed
38,082,142
Written to connected sites by AI agents through Respira. Counted from usage reports and refreshed every few minutes.
WordPress sites connected
3,957
Sites with an active Respira connection, counted from site registrations and refreshed every few minutes.
Find Respira wherever you already are