Add component management and canvas navigation schemas#102
Merged
bertenator merged 5 commits intosaifrom Apr 1, 2026
Merged
Conversation
…_parent_component schemas Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ort, update rules Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bertenator
approved these changes
Apr 1, 2026
| { | ||
| message: | ||
| "Provide at least one of create_page, create_page_folder, get_current_page, switch_page.", | ||
| "Provide at least one of create_page, create_page_folder, get_current_page, switch_page, open_page_canvas.", |
Collaborator
There was a problem hiding this comment.
open_page_canvas why can't it be part of component?
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.
Summary
Adds Zod schemas for new beta component tool actions and canvas navigation to
de_component_tool, plus updated guidance inwebflow_guide_tool.New actions (all beta-gated)
create_blank_componentwebflow.registerComponent(options)open_canvaswebflow.openCanvas(component | { pageId })search_componentswebflow.searchComponents({ q? })get_instance_countcomponent.getInstanceCount()get_current_componentwebflow.getCurrentComponent()get_parent_componentelement.getParentComponent()insert_slotel.append(webflow.elementPresets.Slot)open_page_canvas(page tool)webflow.openCanvas({ pageId })Rules updates
open_canvasvsopen_component_view/close_component_viewNotes
open_canvasreplaces the previousopen_component_canvasand now accepts eithercomponent_idorpage_idopen_page_canvasfromde_page_toolin the future to reduce redundancy withopen_canvasTest plan
Use the beta SSE endpoint (
/beta/sse) in Cursor and run the following prompt:Expected results
status: "success"(except step 16/17 which return success with null data)search_componentsshould return rich metadata (name, group, description, instances, canEdit, library)get_current_componentshould return component info on canvas, null on pageget_parent_componentshould return component info for elements inside components, null for page-levelopen_canvaswithpage_idshould exit component canvasinsert_slotshould work only inside component editing context🤖 Generated with Claude Code