Skip to content

Commit faad89b

Browse files
committed
tool for listing in-page tools
1 parent 7404c4b commit faad89b

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,8 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
475475
- [`list_console_messages`](docs/tool-reference.md#list_console_messages)
476476
- [`take_screenshot`](docs/tool-reference.md#take_screenshot)
477477
- [`take_snapshot`](docs/tool-reference.md#take_snapshot)
478+
- **In-page tools** (1 tools)
479+
- [`list_in_page_tools`](docs/tool-reference.md#list_in_page_tools)
478480

479481
<!-- END AUTO GENERATED TOOLS -->
480482

@@ -566,6 +568,11 @@ The Chrome DevTools MCP server supports the following configuration option:
566568
- **Type:** boolean
567569
- **Default:** `true`
568570

571+
- **`--categoryInPageTools`/ `--category-in-page-tools`**
572+
Set to true to enable tools exposed by the inspected page itself
573+
- **Type:** boolean
574+
- **Default:** `false`
575+
569576
- **`--performanceCrux`/ `--performance-crux`**
570577
Set to false to disable sending URLs from performance traces to CrUX API to get field performance data.
571578
- **Type:** boolean

docs/tool-reference.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
- [`list_console_messages`](#list_console_messages)
3838
- [`take_screenshot`](#take_screenshot)
3939
- [`take_snapshot`](#take_snapshot)
40+
- **[In-page tools](#in-page-tools)** (1 tools)
41+
- [`list_in_page_tools`](#list_in_page_tools)
4042

4143
## Input automation
4244

@@ -397,3 +399,15 @@ in the DevTools Elements panel (if any).
397399
- **verbose** (boolean) _(optional)_: Whether to include all possible information available in the full a11y tree. Default is false.
398400

399401
---
402+
403+
## In-page tools
404+
405+
### `list_in_page_tools`
406+
407+
**Description:** Lists all in-page-tools the page exposes for providing runtime information.
408+
In-page-tools are exposed on the page via the 'window.\_\_dtmcp.executeTool(toolName, params)'
409+
function where they can be called by '[`evaluate_script`](#evaluate_script)'.
410+
411+
**Parameters:** None
412+
413+
---

0 commit comments

Comments
 (0)