Elements
Create and manipulate elements on the Webflow Designer canvas using the Elements tools. These tools work with the live Designer interface to build and modify page layouts.
The MCP Companion App must be open in the Webflow Designer for these tools to function.
Element Builder
Use the Element Builder to create nested elements on the current page. Each action supports up to three levels of nesting. For more complex layouts, make multiple calls to element_builder to construct the element tree incrementally.
After an element is created, it is not automatically selected. Use the element_tool with the select_element action to select and inspect it.
Tool: element_builder
Unique identifier for the site.
An array of element creation actions.
+ Show Action Properties
Object containing the component and element IDs of the parent.
Position to create the new element relative to the parent.
The definition of the element to create.
+ Show Schema Properties
The element type (e.g., “div,” “section,” “h1,” “p”).
An array of nested child elementSchema objects.
div, section, and container can have children. Element nesting is limited to 3 levels deep.Element Tool
The element tool supports multiple actions on elements, such as reading properties, selecting, and updating.
Tool: element_tool
Unique identifier for the site.
An array of element actions to perform. See action examples below.
Actions
Get All Elements
Get a list of all elements on the current page.
Set to “all” to retrieve all elements.
Whether to include style properties in the response.
Whether to include styles for all breakpoints.
Get Selected Element
Get detailed information about the currently selected element.
Select Element
Select an element on the canvas by its ID.
Add or Update Attributes
Add or update attributes on an element.
An array of attribute objects, each with a name and value.
canHaveAttributes: true.Set Text
Set the text content for a text-based element (e.g., “p,” “h1,” “span”).
Remove Attribute
Remove one or more attributes from an element.
An array of attribute names to remove.
canHaveAttributes: true.Update ID Attribute
Update the HTML id attribute of an element.
# character in the new_id string.Set Link
Set the link for an element like a Link Block, Button, or Text Link.
The type of link to set.
The link destination. The format depends on linkType.
Set Heading Level
Change the heading level of a Heading element (e.g., from h2 to h3).
The heading level to apply (1-6).
Set Style
Apply one or more existing styles to an element.
An array of style names to apply.
style_tool.Set Image Asset
Set the image source for an Image element.
The ID of the asset to use.
asset_tool.