豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,21 @@ Add the following config to your MCP client:
> [!NOTE]
> Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.

If you are intersted in doing only basic browser tasks, use the `--slim` mode:

```json
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
}
}
}
```

See [Slim tool reference](./docs/slim-tool-reference.md).

### MCP Client configuration

<details>
Expand Down Expand Up @@ -532,6 +547,10 @@ The Chrome DevTools MCP server supports the following configuration option:
- **Type:** boolean
- **Default:** `true`

- **`--slim`**
Exposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks.
- **Type:** boolean

<!-- END AUTO GENERATED OPTIONS -->

Pass them via the `args` property in the JSON configuration. For example:
Expand Down
41 changes: 41 additions & 0 deletions docs/slim-tool-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->

# Chrome DevTools MCP Slim Tool Reference (~368 cl100k_base tokens)

- **[Navigation automation](#navigation-automation)** (1 tools)
- [`navigate`](#navigate)
- **[Debugging](#debugging)** (2 tools)
- [`evaluate`](#evaluate)
- [`screenshot`](#screenshot)

## Navigation automation

### `navigate`

**Description:** Load URL in the browser

**Parameters:**

- **url** (string) **(required)**: Page URL

---

## Debugging

### `evaluate`

**Description:** [`Evaluate`](#evaluate) a JavaScript function on the last loaded page

**Parameters:**

- **fn** (string) **(required)**: A JavaScript function to be executed on the active page

---

### `screenshot`

**Description:** Take a [`screenshot`](#screenshot) of the active page.

**Parameters:** None

---
Loading