Skip to content

feat: Component Tool - Improved Component Creation + Retrieval#94

Merged
bertenator merged 3 commits intosaifrom
guillermo/component-creation
Mar 25, 2026
Merged

feat: Component Tool - Improved Component Creation + Retrieval#94
bertenator merged 3 commits intosaifrom
guillermo/component-creation

Conversation

@memo-pineda
Copy link
Copy Markdown

@memo-pineda memo-pineda commented Mar 22, 2026

Summary

Add Zod schemas for 6 new de_component_tool actions exposing Webflow Designer Extension component APIs, and extend transform_element_to_component with optional metadata fields.

New Actions

Action Webflow API Jira
get_component_by_id webflow.getComponent(id) STRUCT-3592
get_component_by_name webflow.getComponentByName(name) / (group, name) STRUCT-3615
get_component_settings component.getSettings() STRUCT-3527
set_component_settings component.setSettings(partial) STRUCT-3527
transform_element_to_component (extended) Added optional group, description params STRUCT-3525

Changes

  • src/tools/deComponents.ts: 6 new action schemas, extended transform_element_to_component, updated .refine() validator

Test plan

  • Build passes: npm run build
  • Existing component actions still work
  • New action schemas validate via MCP Inspector
  • End-to-end test via Cursor with bridge app connected

Add Zod schemas for create_blank_component, get_component_by_id,
get_component_by_name, open_component_canvas, get_component_settings,
and set_component_settings. Extend transform_element_to_component
with optional group and description fields.
@memo-pineda memo-pineda changed the base branch from main to sai March 22, 2026 22:14
@memo-pineda memo-pineda changed the title Add component creation and management tool actions feat: Component Tool - Improved Component Creation + Retrieval Mar 23, 2026
@memo-pineda memo-pineda marked this pull request as ready for review March 24, 2026 03:12
@memo-pineda memo-pineda requested a review from a team as a code owner March 24, 2026 03:12
@memo-pineda memo-pineda requested review from 4vanger and viratatwebflow and removed request for a team and 4vanger March 24, 2026 03:12
…metadata

- Merge get_component_by_id and get_component_by_name into single get_component action
- Rename get/set_component_settings to get/set_component_metadata
- Update refine validator and error message
@bertenator
Copy link
Copy Markdown
Member

@viratatwebflow how do these changes look?

@bertenator bertenator self-requested a review March 25, 2026 23:56
@bertenator bertenator merged commit f0c3651 into sai Mar 25, 2026
6 checks passed
@bertenator bertenator deleted the guillermo/component-creation branch March 25, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants