Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 8b09583

Browse files
OrKoNwolfib
authored andcommitted
feat: --slim mode for maximum token savings (ChromeDevTools#958)
- navigate - run js - take screenshot That's it. Basic functionality for a low (~368) token price.
1 parent 33f024b commit 8b09583

11 files changed

Lines changed: 489 additions & 168 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ Add the following config to your MCP client:
8181
> [!NOTE]
8282
> Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
8383
84+
If you are intersted in doing only basic browser tasks, use the `--slim` mode:
85+
86+
```json
87+
{
88+
"mcpServers": {
89+
"chrome-devtools": {
90+
"command": "npx",
91+
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
92+
}
93+
}
94+
}
95+
```
96+
97+
See [Slim tool reference](./docs/slim-tool-reference.md).
98+
8499
### MCP Client configuration
85100

86101
<details>
@@ -540,6 +555,10 @@ The Chrome DevTools MCP server supports the following configuration option:
540555
- **Type:** boolean
541556
- **Default:** `true`
542557

558+
- **`--slim`**
559+
Exposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks.
560+
- **Type:** boolean
561+
543562
<!-- END AUTO GENERATED OPTIONS -->
544563

545564
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+
---

0 commit comments

Comments
 (0)