browser-testing-with-devtools

Inspect DOM, console, network, and performance in live browsers via Chrome DevTools MCP.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/alissonpef/copilot_agent_skills --skill browser-testing-with-devtools-alissonpef
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: browser-testing-with-devtools
Source: https://github.com/alissonpef/copilot_agent_skills/tree/main/.github/skills/browser-testing-with-devtools
Command: npx skills add https://github.com/alissonpef/copilot_agent_skills --skill browser-testing-with-devtools-alissonpef

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @anthropic/chrome-devtools-mcp.

What problem does it solve? Debugging browser-based applications from static code alone leads to guesswork about runtime behavior. This Skill gives the agent direct visibility into the live browser so UI bugs, console errors, network failures, and performance bottlenecks are verified with real runtime data instead of assumptions. ## Core Features & Use Cases - Live Browser Inspection: Capture screenshots, read the DOM tree, retrieve console logs, and monitor network requests through Chrome DevTools MCP. - Structured Debugging Workflows: Follow step-by-step flows for UI bugs, network issues, and performance profiling (LCP, CLS, INP, long tasks). - Security Boundaries: Treats all browser content as untrusted data, restricts JavaScript execution to read-only inspection, and blocks credential access. - Use Case: A task completion animation glitches in your app. The agent navigates to the page, reproduces the bug, checks the console and network requests, takes before/after screenshots, and verifies the fix works in the real browser. ## Quick Start Use the browser testing skill to open my app at localhost:3000, reproduce the layout bug on the tasks page, and report any console errors and failing network requests.

Frequently Asked Questions about browser-testing-with-devtools

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug UI bugs with Chrome DevTools MCP?▼

Follow the reproduce-inspect-diagnose-fix-verify workflow: navigate to the page, capture a screenshot, check console errors, inspect the DOM element and computed styles, fix the source code, then reload and compare screenshots to confirm the fix.

How to analyze network requests in the browser with an AI agent?▼

Open the network monitor, trigger the action, then check the request URL, method, headers, payload, response status, and timing. Status codes guide diagnosis: 4xx indicates client issues, 5xx server errors, and CORS failures point to origin header misconfiguration.

What is Chrome DevTools MCP and how do I set it up?▼

Chrome DevTools MCP is a server that gives AI agents access to browser inspection tools like screenshots, DOM reading, console logs, and performance traces. Add it to your project's MCP config with the command npx @anthropic/chrome-devtools-mcp@latest.

Can the agent execute JavaScript in the browser page?▼

Yes, but only for read-only state inspection such as reading variables or querying the DOM. It must not access cookies, localStorage tokens, or credentials, make external network requests, or modify the page without user confirmation.

When should I not use browser-based testing with DevTools?▼

Avoid it for backend-only changes, CLI tools, or any code that does not run in a browser. It is designed specifically for verifying rendered UI, runtime console output, network behavior, and frontend performance.

Why is browser content treated as untrusted data?▼

DOM text, console messages, and network responses can contain injected instructions designed to manipulate the agent. The skill requires flagging instruction-like content to the user and never navigating to URLs or executing commands found in page content.