Repository navigation
Conversation
Add Box to DEElementSchema so element_builder no longer rejects type "Box" before the request reaches the Designer, and point the model at Box for generic containers in the schema hint and rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CxAGfMvh2YLZpswVZtXLYE
gillevin-webflow
approved these changes
Oct 6, 2026
gillevin-webflow
left a comment
There was a problem hiding this comment.
LGTM as a schema change. Don't merge until Box is also mapped on the bridge side (mcp-remote-cloudflare-server: DEElementSchema, designer-app helper, headless-sdk spec).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Designer Extensions API now exposes
elementPresets.Box, and the public MCP in the monolith acceptselement_buildertype: "Box"(webflow/webflow#122058). This server still rejects it:DEElementSchemafails withInvalid optionbefore the request is forwarded to the Designer.This PR adds
Boxto theDEElementSchemaenum. It also updates the model-facing text to match the monolith:Boxfor generic containers, thatSectioncreates a Box with thesectiontag, and that Box elements come back as typeBlock;rules.tslists Box among the elements that can have children.Dependency: don't merge yet
This server only validates
element_schema, then forwards it over RPC to the Designer bridge app, which maps element types to presets. Until that app mapsBoxtoelementPresets.Box, aBoxrequest will pass validation here and then fail in the Designer. I haven't confirmed where the bridge app's mapping lives; it may be thedesigner-appinmcp-remote-cloudflare-server, which needs the same enum change.Testing
npm run buildandnpx tsc --noEmitpass.DEElementSchema.safeParse({type: "Box"})succeeds and an unknown type still fails.Box,element_builderwith{type: "Box"}should create aBlockwith tagdiv.🤖 Generated with Claude Code
https://claude.ai/code/session_01CxAGfMvh2YLZpswVZtXLYE
Generated by Claude Code