Skip to content

Commit ff90213

Browse files
author
root
committed
docs: document attaching to a running Chrome instance
1 parent 42e105b commit ff90213

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ Chrome DevTools for reliable automation, in-depth debugging, and performance ana
99

1010
## [Tool reference](./docs/tool-reference.md) | [Changelog](./CHANGELOG.md) | [Contributing](./CONTRIBUTING.md) | [Troubleshooting](./docs/troubleshooting.md) | [Design Principles](./docs/design-principles.md)
1111

12+
## Connecting to a running Chrome instance
13+
14+
If you already have a Chrome instance running with remote debugging enabled (for example started with `--remote-debugging-port=9222`), you can attach `chrome-devtools-mcp` to it instead of launching a new browser.
15+
16+
- HTTP debugging endpoint (recommended): `--browserUrl http://127.0.0.1:9222`
17+
- WebSocket endpoint (advanced): `--wsEndpoint ws://127.0.0.1:9222/devtools/browser/<id>`
18+
19+
Quick self-check: `http://127.0.0.1:9222/json/version` should return JSON.
20+
21+
See example: [`examples/remote-debugging-9222.mjs`](./examples/remote-debugging-9222.mjs).
22+
1223
## Key features
1324

1425
- **Get performance insights**: Uses [Chrome

0 commit comments

Comments
 (0)