Chrome DevTools Validation
Overview
Use the Chrome DevTools MCP to open the local dev site and validate UI changes with snapshots, screenshots, and console checks.
Workflow
- •Confirm MCP availability by calling
list_pages. If it times out, ask the user to restart the MCP or increase--protocolTimeout. - •Open or select
http://localhost:3000/withnew_pageorselect_page. - •Navigate to the requested UI area using
evaluate_scriptto find headings/labels and scroll them into view. - •Capture evidence:
- •
take_snapshotfor the a11y tree. - •
take_screenshotfor visual confirmation.
- •
- •Validate:
- •Layout, spacing, typography, and imagery.
- •Light/dark theme if relevant (toggle the theme switch).
- •Responsive layout using
resize_page(e.g., 375px width).
- •Check runtime errors with
list_console_messagesfiltered toerror. - •Report results succinctly, noting the viewport/theme used and any issues found.
Reporting
State whether the section looks correct or list the issues found. Include:
- •The page URL.
- •The viewport size and theme used.
- •Any console errors or missing assets.