SKILL.md
UI Preview Skill
Preview local dev servers URLs using Chrome DevTools.
Available Tools
navigate_page- Navigate to a URL (supports url, back, forward, reload)new_page- Open a new browser tab and load a URLlist_pages- Get a list of pages open in the browserselect_page- Select a page as context for future tool callsclick- Clicks on the provided element (supports double click)fill- Type text into an input, text area, or select an option from a<select>elementhover- Hover over the provided elementpress_key- Press a key or key combination. Use this when other input methods like fill() cannot be used (e.g., keyboard shortcuts, navigation keys, or special key combinations)handle_dialog- If a browser dialog was opened, use this command to handle it (accept/dismiss)wait_for- Wait for the specified text to appear on the selected pagetake_snapshot- Take a text snapshot of the currently selected page based on the a11y tree. The snapshot lists page elements with unique IDstake_screenshot- Take a screenshot of the page or elementevaluate_script- Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON so returned values have to be JSON-serializablelistconsolemessages- List all console messages for the currently selected page since the last navigationgetconsolemessage- Gets a console message by its ID
Workflow
- Navigate to the target URL using
navigate_page - Wait for the desired element to appear using
wait_for - Take a snapshot of the page structure using
take_snapshot - Interact with elements using
click,fill,hover, orpress_key - Handle any dialogs using
handle_dialog - Screenshot the page using
take_screenshot - Inspect console logs using
listconsolemessages/getconsolemessage
Local Dev URLs
Navigate to http://localhost:3000 for the web dev server.