You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests.
4
+
---
5
+
6
+
## Core Concepts
7
+
8
+
**Browser lifecycle**: Browser starts automatically on first tool call using a persistent Chrome profile. Configure via CLI args in the MCP server configuration: `npx chrome-devtools-mcp@latest --help`.
9
+
10
+
**Page selection**: Tools operate on the currently selected page. Use `list_pages` to see available pages, then `select_page` to switch context.
11
+
12
+
**Element interaction**: Use `take_snapshot` to get page structure with element `uid`s. Each element has a unique `uid` for interaction. If an element isn't found, take a fresh snapshot - the element may have been removed or the page changed.
13
+
14
+
## Workflow Patterns
15
+
16
+
### Before interacting with a page
17
+
18
+
1. Navigate: `navigate_page` or `new_page`
19
+
2. Wait: `wait_for` to ensure content is loaded if you know what you look for.
20
+
3. Snapshot: `take_snapshot` to understand page structure
21
+
4. Interact: Use element `uid`s from snapshot for `click`, `fill`, etc.
22
+
23
+
### Efficient data retrieval
24
+
25
+
- Use `filePath` parameter for large outputs (screenshots, snapshots, traces)
26
+
- Use pagination (`pageIdx`, `pageSize`) and filtering (`types`) to minimize data
27
+
- Set `includeSnapshot: false` on input actions unless you need updated page state
28
+
29
+
### Tool selection
30
+
31
+
-**Automation/interaction**: `take_snapshot` (text-based, faster, better for automation)
32
+
-**Visual inspection**: `take_screenshot` (when user needs to see visual state)
33
+
-**Additional details**: `evaluate_script` for data not in accessibility tree
34
+
35
+
### Parallel execution
36
+
37
+
You can send multiple tool calls in parallel, but maintain correct order: navigate → wait → snapshot → interact.
38
+
39
+
## Troubleshooting
40
+
41
+
If `chrome-devtools-mcp` is insufficient, guide users to use Chrome DevTools UI:
0 commit comments