Skip to content

MCP set_style with multiple classes: second class invisible in Designer UI but affects styling #112

@mlimmerfolg

Description

@mlimmerfolg

Description

When using set_style (via the element_tool) with two or more class names, only the first class is visible in the Webflow Designer's Style Selector panel. The second (and any subsequent) class is applied to the element and affects rendering, but is completely invisible in the Designer UI.

This means users cannot see, edit, or remove the hidden class through the Designer — only via MCP.

Reproduction Steps

  1. Open any Webflow project in the Designer with the MCP app connected
  2. Select any element with an existing class (e.g. section_content1)
  3. Use MCP element_tool > set_style with two classes:
    {
    "style_names": ["section_content1", "background-color-gray"]
    }
  4. MCP responds with success, showing both classes
  5. In the Designer Style Selector: only section_content1 is visible
  6. background-color-gray is not visible anywhere in the UI (Style Selector, Attributes panel, etc.)
  7. However, the styling from background-color-gray is applied to the element

Expected Behavior
Both classes should be visible in the Designer's Style Selector panel, just as if the user had added them manually.

Actual Behavior

  • Only the first class appears in the Style Selector
  • The second class is invisible but actively affects styling
  • Reloading the Designer does not fix the issue
  • Deselecting and reselecting the element does not fix the issue
  • The isComboClass flag in the MCP response is true

Environment

  • Tested on two separate Webflow projects
  • Tested on both Component root elements and regular page-level Sections
  • Chrome 146, Windows 11
  • MCP connector via Claude Code

Impact

  • Hidden styling dependencies that users cannot manage
  • No way to remove the hidden class through the Designer UI
  • Users may unknowingly accumulate invisible classes that affect their design
  • Workaround: only set one class per set_style call, use wrapper divs for additional classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions