|
1 | 1 | <!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update--> |
2 | 2 |
|
3 | | -# Chrome DevTools MCP Tool Reference (~6885 cl100k_base tokens) |
| 3 | +# Chrome DevTools MCP Tool Reference (~7324 cl100k_base tokens) |
4 | 4 |
|
5 | | -- **[Input automation](#input-automation)** (8 tools) |
| 5 | +- **[Input automation](#input-automation)** (9 tools) |
6 | 6 | - [`click`](#click) |
7 | 7 | - [`drag`](#drag) |
8 | 8 | - [`fill`](#fill) |
9 | 9 | - [`fill_form`](#fill_form) |
10 | 10 | - [`handle_dialog`](#handle_dialog) |
11 | 11 | - [`hover`](#hover) |
12 | 12 | - [`press_key`](#press_key) |
| 13 | + - [`type_text`](#type_text) |
13 | 14 | - [`upload_file`](#upload_file) |
14 | 15 | - **[Navigation automation](#navigation-automation)** (6 tools) |
15 | 16 | - [`close_page`](#close_page) |
|
29 | 30 | - **[Network](#network)** (2 tools) |
30 | 31 | - [`get_network_request`](#get_network_request) |
31 | 32 | - [`list_network_requests`](#list_network_requests) |
32 | | -- **[Debugging](#debugging)** (5 tools) |
| 33 | +- **[Debugging](#debugging)** (6 tools) |
33 | 34 | - [`evaluate_script`](#evaluate_script) |
34 | 35 | - [`get_console_message`](#get_console_message) |
| 36 | + - [`lighthouse_audit`](#lighthouse_audit) |
35 | 37 | - [`list_console_messages`](#list_console_messages) |
36 | 38 | - [`take_screenshot`](#take_screenshot) |
37 | 39 | - [`take_snapshot`](#take_snapshot) |
|
118 | 120 |
|
119 | 121 | --- |
120 | 122 |
|
| 123 | +### `type_text` |
| 124 | + |
| 125 | +**Description:** Type text using keyboard into a previously focused input |
| 126 | + |
| 127 | +**Parameters:** |
| 128 | + |
| 129 | +- **text** (string) **(required)**: The text to type |
| 130 | +- **submitKey** (string) _(optional)_: Optional key to press after typing. E.g., "Enter", "Tab", "Escape" |
| 131 | + |
| 132 | +--- |
| 133 | + |
121 | 134 | ### `upload_file` |
122 | 135 |
|
123 | 136 | **Description:** Upload a file through a provided element. |
|
195 | 208 |
|
196 | 209 | **Parameters:** |
197 | 210 |
|
198 | | -- **text** (string) **(required)**: Text to appear on the page |
| 211 | +- **text** (array) **(required)**: Non-empty list of texts. Resolves when any value appears on the page. |
199 | 212 | - **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used. |
200 | 213 |
|
201 | 214 | --- |
@@ -333,6 +346,18 @@ so returned values have to be JSON-serializable. |
333 | 346 |
|
334 | 347 | --- |
335 | 348 |
|
| 349 | +### `lighthouse_audit` |
| 350 | + |
| 351 | +**Description:** Get Lighthouse score and reports for accessibility, SEO and best practices. |
| 352 | + |
| 353 | +**Parameters:** |
| 354 | + |
| 355 | +- **device** (enum: "desktop", "mobile") _(optional)_: Device to [`emulate`](#emulate). |
| 356 | +- **mode** (enum: "navigation", "snapshot") _(optional)_: "navigation" reloads & audits. "snapshot" analyzes current state. |
| 357 | +- **outputDirPath** (string) _(optional)_: Directory for reports. If omitted, uses temporary files. |
| 358 | + |
| 359 | +--- |
| 360 | + |
336 | 361 | ### `list_console_messages` |
337 | 362 |
|
338 | 363 | **Description:** List all console messages for the currently selected page since the last navigation. |
|
0 commit comments