Skip to content

Commit 1f9b0e5

Browse files
committed
docs: clarify browser-url parameter in README
Fixes #609
1 parent 2d89865 commit 1f9b0e5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/tool-reference.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,16 @@ so returned values have to JSON-serializable.
279279

280280
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
281281
- **function** (string) **(required)**: A JavaScript function declaration to be executed by the tool in the currently selected page.
282-
Example without arguments: `() => {
282+
Example without arguments: `() => {
283283
return document.title
284284
}` or `async () => {
285285
return await fetch("example.com")
286286
}`.
287-
Example with arguments: `(el) => {
287+
Example with arguments: `(el) => {
288288
return el.innerText;
289289
}`
290290

291+
291292
---
292293

293294
### `get_console_message`

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const cliOptions = {
1111
browserUrl: {
1212
type: 'string',
1313
description:
14-
'Connect to a running Chrome instance using port forwarding. For more details see: https://developer.chrome.com/docs/devtools/remote-debugging/local-server.',
14+
'Connect to a running Chrome instance using port forwarding. The value of this option should be the URL of the running Chrome instance together with the configured debugging port. `http://127.0.0.1:9222` is a common default. For more details see: https://github.com/ChromeDevTools/chrome-devtools-mcp?tab=readme-ov-file#connecting-to-a-running-chrome-instance.',
1515
alias: 'u',
1616
conflicts: 'wsEndpoint',
1717
coerce: (url: string | undefined) => {

0 commit comments

Comments
 (0)