chrome-devtools
Chrome DevTools for debugging, performance analysis, and browser automation. Use when debugging web apps, analyzing performance, inspecting network requests, or automating browser interactions.
When & Why to Use This Skill
The Chrome DevTools skill enables Claude to interact with and inspect live Chrome browser instances via the Chrome DevTools Protocol. It provides a comprehensive suite of tools for browser automation, web application debugging, and performance analysis, allowing users to programmatically navigate pages, manipulate UI elements, and capture visual snapshots for robust web testing and data extraction.
Use Cases
- Automated End-to-End Testing: Simulate user journeys by clicking elements, filling forms, and verifying page states to ensure web application reliability.
- Web Performance Analysis: Use script evaluation and network inspection capabilities to identify bottlenecks and optimize page load speeds.
- Visual Regression Testing: Capture high-quality screenshots of specific components or full pages to detect UI inconsistencies across different deployments.
- Dynamic Content Extraction: Navigate complex single-page applications (SPAs) and use accessibility tree snapshots to accurately locate and scrape data from dynamic elements.
- Frontend Debugging: Inspect the DOM, monitor network requests, and execute custom JavaScript in the browser context to troubleshoot client-side issues.
| name | chrome-devtools |
|---|---|
| description | Chrome DevTools for debugging, performance analysis, and browser automation. Use when debugging web apps, analyzing performance, inspecting network requests, or automating browser interactions. |
Chrome DevTools (MCP)
Control and inspect a live Chrome browser via Chrome DevTools Protocol.
Available Tools
take_snapshot- Get accessibility tree snapshot with element UIDstake_screenshot- Capture screenshot of page or elementnavigate_page- Navigate to URL, back, forward, or reloadnew_page- Open a new browser tablist_pages- List all open pages/tabsclick- Click element by UIDfill- Type text into elementhover- Hover over elementpress_key- Press keyboard key (Enter, Tab, etc.)evaluate_script- Run JavaScript in page contextwait_for- Wait for text to appear
Workflow
- Snapshot the page using
take_snapshotto get element UIDs - Navigate to target URL using
navigate_page - Interact using
click,fill,hoverwith UIDs from snapshot - Screenshot to capture results using
take_screenshot
Quick Start
# Get page structure with element UIDs
skill_mcp(skill_name="chrome-devtools", tool_name="take_snapshot")
# Navigate to URL
skill_mcp(skill_name="chrome-devtools", tool_name="navigate_page", arguments='{"type": "url", "url": "https://example.com"}')
# Click element (use UID from snapshot)
skill_mcp(skill_name="chrome-devtools", tool_name="click", arguments='{"uid": "e123"}')
# Fill input field
skill_mcp(skill_name="chrome-devtools", tool_name="fill", arguments='{"uid": "e456", "value": "hello"}')
# Take screenshot
skill_mcp(skill_name="chrome-devtools", tool_name="take_screenshot")
Tips
- Always
take_snapshotfirst to get element UIDs - Element UIDs change after navigation - take fresh snapshot
- Use
wait_forafter actions that trigger page changes - Use
evaluate_scriptfor custom JS when tools don't cover your need
vs Playwright
| Feature | chrome-devtools | playwright |
|---|---|---|
| Browser support | Chrome only | Chrome, FF, WebKit |
| Performance tracing | ✅ (full MCP has it) | ❌ |
| Network inspection | ✅ (full MCP has it) | ❌ |
| Cross-browser | ❌ | ✅ |
Note: This skill loads 11 essential tools. For full 26+ tools (performance, network, console), modify
mcp.jsonto removeincludeToolsfilter.