Navigate the User's Preview
navigate_previewPoint the user's OPEN Floot preview at a page URL, a component's examples, or a page's examples — use it to SHOW the user what you just built ("here's the new dashboard page", "here's the Button component's states"), and pair it with screenshot_preview to see the result yourself. targetType "page" navigates the app's router to path — a URL path with optional query/hash ("/", "/user/123?tab=settings#top"; pages/user.$id.tsx serves /user/). targetType "component" renders the component's .example.tsx showcase for name ("HeroSection", exactly as list_files shows it; tell the user if it has no example — you can create one). targetType "page-examples" renders the staged screens in pages/.__example.tsx for the page name ("dashboard", "_index") — the same view as the preview's Live/Examples switch, so it needs that file to exist. targetType "design" shows the design canvas designs/.tsx for name ("CheckoutExplorations"), fitted to all frames, and lists its sections and frames; append "#" to zoom to one section, frame or bookmark ("CheckoutExplorations#payment"), like opening one screen of a page's examples. Requires a Floot window to be open for this project; fails fast with guidance when none answers. Does not modify the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The item name without folder prefix or extension, exactly as list_files shows it. For targetType "component" a component — e.g. "HeroSection". For targetType "page-examples" a page — e.g. "dashboard", "_index", "user.$id". For targetType "design" a design, optionally with "#<section, frame or bookmark id>" — e.g. "CheckoutExplorations#payment" (prefix "section:", "frame:" or "bookmark:" after the # when ids collide). | |
| path | No | For targetType "page": the URL path to navigate to, starting with "/" — query and hash allowed, e.g. "/user/123?tab=settings#top". | |
| projectId | Yes | ||
| targetType | Yes |