# WPBakery MCP: pages, element edits and saved templates from your AI agent

WPBakery saves a page as its own shortcodes, so a page your AI agent builds through Widejoin opens in WPBakery's editor like one made by hand. Each change applies at once in Direct mode as the agent's WordPress user and is recorded for restore, or waits for a person in wp-admin when the site uses Review first.

## Does Widejoin work with WPBakery?

Widejoin lets your AI agent build and edit WPBakery pages and save templates, tested on WPBakery 9.0.1, and each change keeps a record. These writes come with [the Pro add-on from $99 a year](/pricing/); the four read tools are in the free plugin.

## Which WPBakery tools does Widejoin have?

8 tools: `read-wpbakery-layout` reads a page as an outline of every row, column and element by path, `list-wpbakery-templates` lists saved and default templates, `wpbakery-element-schema` lists the elements in WPBakery's registry with their params, and `read-wpbakery-grid-item` reads Grid Builder item templates. With the Pro add-on, `create-wpbakery-draft` creates a draft page from a full element tree, `prepare-wpbakery-layout` changes a page with ordered operations on elements by path, `save-wpbakery-template` saves or removes a user template, and `prepare-wpbakery-grid-item` creates or changes a Grid Builder item template.

## What can the agent change in WPBakery?

- New draft pages from a shortcode tree, saved as WPBakery's own shortcodes.
- Elements added, changed, moved or removed by path.
- User templates saved from a page or an element tree, and removed again.
- Grid Builder item templates, the layout of each item in a post grid.

## What waits for an administrator?

An edit that adds or changes code, such as an onclick on a button, waits for a user allowed unfiltered HTML. Everything else follows the WordPress rights of the agent's user.

## What will it not do in WPBakery?

- It writes only to WPBakery 9.x. On another major version the WPBakery tools are off.
- Grid Builder item templates were tested in a basic grid on the plugin itself; the masonry and media grids only in unit tests.
- Attribute values with backslashes or backtick pairs are refused, because WPBakery does not keep them in a shortcode attribute.

## How does restore work?

Restore returns the exact previous state. In Direct mode the agent undoes a change with one `restore-change` call, and a person can restore it from the change's page in wp-admin.

On 23 October 2026 our lab ran WPBakery 9.0.1 from its licensed zip, and the test drafted a page whose half width column holds a green "Talk to us" button linked to /contact. The page opened in WPBakery, a reviewed element edit and a saved template followed, and "Undo this change" took back all three.

Related: the [Avada integration](/integrations/avada/), the [Beaver Builder integration](/integrations/beaver-builder/), the [Elementor integration](/integrations/elementor/) and [how a change works](/how-it-works/).

## Questions

### Which WPBakery version did you test?

WPBakery 9.0.1, on our lab, in Widejoin 1.2.0.

### Does it work with WPBakery 8?

No. The WPBakery tools run on WPBakery 9.x and are off on other major versions.

### Will a page built by the agent open in WPBakery?

Yes. It is saved as WPBakery's own shortcodes, and our test opens it in WPBakery's editor.

### Is reading a WPBakery page free?

Yes. The four read tools are in the free plugin. Drafts, element edits and templates need the Pro add-on.
