---
name: debug-with-chrome-devtools
description: Inspects a live page with the Chrome DevTools MCP server, including console messages, failed network requests, and a performance trace. Use when a page throws in the browser, a request returns an error status, or the user wants DevTools evidence before editing.
license: MIT
metadata:
  category: debugging
  tags: "browser,debugging"
  author: johnny-bravo
  version: "1.0"
  updated: "2026-11-10"
  status: published
  aliases: "chrome devtools mcp, console messages, network requests, performance trace"
  source_url: "https://github.com/github/awesome-copilot/tree/5269f7ea2d6c3a9bfda5ed878b6726cf509121fd/skills/chrome-devtools"
  source_license: MIT
  copyright: "Copyright GitHub, Inc."
  original_author: "GitHub awesome-copilot contributors (chrome-devtools)"
  modified: "Adapted by TheSkillVault on 2026-11-10: the tool catalogue was cut down to a read-first loop for console, network and a performance trace; interaction steps were shortened; added when-not-to-use, secret handling and done-when. Not the original file."
  imported_on: "2026-11-10"
---

# Inspect a page with Chrome DevTools

Use the Chrome DevTools MCP server on a page that is already open. Read the console, the failed requests and a trace before you edit code.

## When to use
- The page throws, and you need the console text.
- A request fails, and you need the status and the URL.
- The page feels slow, and you want a performance trace.

## When not to use
- You want a script that runs in CI. Use test-web-app-with-playwright.
- You want a shell tool to drive a flow. Use test-site-with-agent-browser.
- Field data already names a slow load or a layout jump. Use fix-core-web-vitals for the fix.

## Steps
1. Connect the Chrome DevTools MCP server. Confirm it can see an open browser.
2. List the open pages and select the tab you mean. Do not act on a tab you have not named.
3. Read the console messages. Copy the error text and the file it names.
4. List the network requests. Keep status 4xx, 5xx and requests that never finish. Note the URL, method and status.
5. For a slow page, start a performance trace, reload once, then stop. Read the longest tasks. Do not guess from a picture.
6. Write the evidence in three lines. Console, network, and the trace if you took one.
7. Stop. A code change now can hide the evidence.

## Gotchas
- Do not paste cookies, session tokens or personal data from the network panel. Redact them first.
- Ids from a page snapshot go stale after navigation. Look again before you act.
- One trace is a clue, not a lab score. Say it was a single run.
- If the MCP server is not connected, say so. Do not invent console lines.

## Portability
Works with any site the browser can open. If you use another tool for scripted checks, keep this one for live console, network and trace evidence.

## Done when
- The report names the page and quotes the console error, or says there was none.
- Failed requests include the URL and the status, with secrets removed.
- No product code was changed while the evidence was collected.

## Example prompt
"This checkout page throws after submit. Use Chrome DevTools to list the console errors and the failed network requests. Do not edit the code yet."

---
Adapted from "chrome-devtools" in github/awesome-copilot (MIT, Copyright GitHub, Inc.). See LICENSE.txt.
