Skip to content

Commit 5ed43e1

Browse files
authored
Merge branch 'main' into fix/940-improve-mcp-invocation
2 parents d4da5d5 + 7ffdc5e commit 5ed43e1

44 files changed

Lines changed: 2934 additions & 1349 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,21 @@ Add the following config to your MCP client:
7373
> [!NOTE]
7474
> Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
7575
76+
If you are intersted in doing only basic browser tasks, use the `--slim` mode:
77+
78+
```json
79+
{
80+
"mcpServers": {
81+
"chrome-devtools": {
82+
"command": "npx",
83+
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
84+
}
85+
}
86+
}
87+
```
88+
89+
See [Slim tool reference](./docs/slim-tool-reference.md).
90+
7691
### MCP Client configuration
7792

7893
<details>
@@ -418,10 +433,11 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
418433
- **Emulation** (2 tools)
419434
- [`emulate`](docs/tool-reference.md#emulate)
420435
- [`resize_page`](docs/tool-reference.md#resize_page)
421-
- **Performance** (3 tools)
436+
- **Performance** (4 tools)
422437
- [`performance_analyze_insight`](docs/tool-reference.md#performance_analyze_insight)
423438
- [`performance_start_trace`](docs/tool-reference.md#performance_start_trace)
424439
- [`performance_stop_trace`](docs/tool-reference.md#performance_stop_trace)
440+
- [`take_memory_snapshot`](docs/tool-reference.md#take_memory_snapshot)
425441
- **Network** (2 tools)
426442
- [`get_network_request`](docs/tool-reference.md#get_network_request)
427443
- [`list_network_requests`](docs/tool-reference.md#list_network_requests)
@@ -495,6 +511,10 @@ The Chrome DevTools MCP server supports the following configuration option:
495511
If enabled, ignores errors relative to self-signed and expired certificates. Use with caution.
496512
- **Type:** boolean
497513

514+
- **`--experimentalScreencast`/ `--experimental-screencast`**
515+
Exposes experimental screencast tools (requires ffmpeg). Install ffmpeg https://www.ffmpeg.org/download.html and ensure it is available in the MCP server PATH.
516+
- **Type:** boolean
517+
498518
- **`--chromeArg`/ `--chrome-arg`**
499519
Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.
500520
- **Type:** array
@@ -528,6 +548,10 @@ The Chrome DevTools MCP server supports the following configuration option:
528548
- **Type:** boolean
529549
- **Default:** `true`
530550

551+
- **`--slim`**
552+
Exposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks.
553+
- **Type:** boolean
554+
531555
<!-- END AUTO GENERATED OPTIONS -->
532556

533557
Pass them via the `args` property in the JSON configuration. For example:

docs/slim-tool-reference.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
2+
3+
# Chrome DevTools MCP Slim Tool Reference (~368 cl100k_base tokens)
4+
5+
- **[Navigation automation](#navigation-automation)** (1 tools)
6+
- [`navigate`](#navigate)
7+
- **[Debugging](#debugging)** (2 tools)
8+
- [`evaluate`](#evaluate)
9+
- [`screenshot`](#screenshot)
10+
11+
## Navigation automation
12+
13+
### `navigate`
14+
15+
**Description:** Load URL in the browser
16+
17+
**Parameters:**
18+
19+
- **url** (string) **(required)**: Page URL
20+
21+
---
22+
23+
## Debugging
24+
25+
### `evaluate`
26+
27+
**Description:** [`Evaluate`](#evaluate) a JavaScript function on the last loaded page
28+
29+
**Parameters:**
30+
31+
- **fn** (string) **(required)**: A JavaScript function to be executed on the active page
32+
33+
---
34+
35+
### `screenshot`
36+
37+
**Description:** Take a [`screenshot`](#screenshot) of the active page.
38+
39+
**Parameters:** None
40+
41+
---

docs/tool-reference.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
22

3-
# Chrome DevTools MCP Tool Reference (~6661 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~6885 cl100k_base tokens)
44

55
- **[Input automation](#input-automation)** (8 tools)
66
- [`click`](#click)
@@ -21,10 +21,11 @@
2121
- **[Emulation](#emulation)** (2 tools)
2222
- [`emulate`](#emulate)
2323
- [`resize_page`](#resize_page)
24-
- **[Performance](#performance)** (3 tools)
24+
- **[Performance](#performance)** (4 tools)
2525
- [`performance_analyze_insight`](#performance_analyze_insight)
2626
- [`performance_start_trace`](#performance_start_trace)
2727
- [`performance_stop_trace`](#performance_stop_trace)
28+
- [`take_memory_snapshot`](#take_memory_snapshot)
2829
- **[Network](#network)** (2 tools)
2930
- [`get_network_request`](#get_network_request)
3031
- [`list_network_requests`](#list_network_requests)
@@ -172,6 +173,7 @@
172173

173174
- **url** (string) **(required)**: URL to load in a new page.
174175
- **background** (boolean) _(optional)_: Whether to open the page in the background without bringing it to the front. Default is false (foreground).
176+
- **isolatedContext** (string) _(optional)_: If specified, the page is created in an isolated browser context with the given name. Pages in the same browser context share cookies and storage. Pages in different browser contexts are fully isolated.
175177
- **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
176178

177179
---
@@ -261,6 +263,16 @@
261263

262264
---
263265

266+
### `take_memory_snapshot`
267+
268+
**Description:** Capture a memory heapsnapshot of the currently selected page to memory leak debugging
269+
270+
**Parameters:**
271+
272+
- **filePath** (string) **(required)**: A path to a .heapsnapshot file to save the heapsnapshot to.
273+
274+
---
275+
264276
## Network
265277

266278
### `get_network_request`

0 commit comments

Comments
 (0)