Loading...
Loading...
Capture current page layout, styles, and structure from a live web page using Chrome DevTools MCP. Use when you need to understand the existing UI before making changes — captures screenshots, DOM structure, computed styles, and layout properties. Useful as a pre-implementation baseline for frontend or UI-affecting changes.
npx skill4agent add delexw/claude-code-misc page-inspector$ARGUMENTS[0]http://localhost:3000/page$ARGUMENTS[1]./page-inspector-outputlist_pages$ARGUMENTS[0]// Run via evaluate_script to clear page cache and hard-refresh
caches.keys().then(names => names.forEach(name => caches.delete(name)));
location.reload(true);$ARGUMENTS[1]/screenshots/desktop.png$ARGUMENTS[1]/screenshots/{width}px.pngevaluate_script$ARGUMENTS[1]/output.md# Page Inspector Report: {url}
## Screenshots
- Desktop (current): `screenshots/desktop.png`
- 1440px: `screenshots/1440px.png`
- 1024px: `screenshots/1024px.png`
- 768px: `screenshots/768px.png`
- 375px: `screenshots/375px.png`
## Page Structure
{DOM structure overview — key containers and their roles}
## Layout Properties
{CSS display, grid/flex configs, positioning for key elements}
## Typography & Colors
{Font stacks, sizes, color palette observed}
## Spacing & Dimensions
{Key measurements observed}
## Notes
{Any observations relevant to upcoming changes}mkdir -p $ARGUMENTS[1]/screenshots