|
1 | 1 | <!-- AUTO GENERATED DO NOT EDIT - run 'npm run gen' to update--> |
2 | 2 |
|
3 | | -# Chrome DevTools MCP Tool Reference (~6962 cl100k_base tokens) |
| 3 | +# Chrome DevTools MCP Tool Reference (~7005 cl100k_base tokens) |
4 | 4 |
|
5 | 5 | - **[Input automation](#input-automation)** (9 tools) |
6 | 6 | - [`click`](#click) |
|
22 | 22 | - **[Emulation](#emulation)** (2 tools) |
23 | 23 | - [`emulate`](#emulate) |
24 | 24 | - [`resize_page`](#resize_page) |
25 | | -- **[Performance](#performance)** (4 tools) |
| 25 | +- **[Performance](#performance)** (3 tools) |
26 | 26 | - [`performance_analyze_insight`](#performance_analyze_insight) |
27 | 27 | - [`performance_start_trace`](#performance_start_trace) |
28 | 28 | - [`performance_stop_trace`](#performance_stop_trace) |
29 | | - - [`take_memory_snapshot`](#take_memory_snapshot) |
30 | 29 | - **[Network](#network)** (2 tools) |
31 | 30 | - [`get_network_request`](#get_network_request) |
32 | 31 | - [`list_network_requests`](#list_network_requests) |
|
37 | 36 | - [`list_console_messages`](#list_console_messages) |
38 | 37 | - [`take_screenshot`](#take_screenshot) |
39 | 38 | - [`take_snapshot`](#take_snapshot) |
| 39 | +- **[Extensions](#extensions)** (5 tools) |
| 40 | + - [`install_extension`](#install_extension) |
| 41 | + - [`list_extensions`](#list_extensions) |
| 42 | + - [`reload_extension`](#reload_extension) |
| 43 | + - [`trigger_extension_action`](#trigger_extension_action) |
| 44 | + - [`uninstall_extension`](#uninstall_extension) |
| 45 | +- **[Memory](#memory)** (1 tools) |
| 46 | + - [`take_memory_snapshot`](#take_memory_snapshot) |
40 | 47 |
|
41 | 48 | ## Input automation |
42 | 49 |
|
|
276 | 283 |
|
277 | 284 | --- |
278 | 285 |
|
279 | | -### `take_memory_snapshot` |
280 | | - |
281 | | -**Description:** Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks. |
282 | | - |
283 | | -**Parameters:** |
284 | | - |
285 | | -- **filePath** (string) **(required)**: A path to a .heapsnapshot file to save the heapsnapshot to. |
286 | | - |
287 | | ---- |
288 | | - |
289 | 286 | ## Network |
290 | 287 |
|
291 | 288 | ### `get_network_request` |
@@ -333,6 +330,7 @@ so returned values have to be JSON-serializable. |
333 | 330 | }` |
334 | 331 |
|
335 | 332 | - **args** (array) _(optional)_: An optional list of arguments to pass to the function. |
| 333 | +- **dialogAction** (string) _(optional)_: Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept. |
336 | 334 |
|
337 | 335 | --- |
338 | 336 |
|
@@ -397,3 +395,67 @@ in the DevTools Elements panel (if any). |
397 | 395 | - **verbose** (boolean) _(optional)_: Whether to include all possible information available in the full a11y tree. Default is false. |
398 | 396 |
|
399 | 397 | --- |
| 398 | + |
| 399 | +## Extensions |
| 400 | + |
| 401 | +> NOTE: Extensions are not active by default. Use the '--category-extensions' flag |
| 402 | +
|
| 403 | +### `install_extension` |
| 404 | + |
| 405 | +**Description:** Installs a Chrome extension from the given path. |
| 406 | + |
| 407 | +**Parameters:** |
| 408 | + |
| 409 | +- **path** (string) **(required)**: Absolute path to the unpacked extension folder. |
| 410 | + |
| 411 | +--- |
| 412 | + |
| 413 | +### `list_extensions` |
| 414 | + |
| 415 | +**Description:** Lists all the Chrome extensions installed in the browser. This includes their name, ID, version, and enabled status. |
| 416 | + |
| 417 | +**Parameters:** None |
| 418 | + |
| 419 | +--- |
| 420 | + |
| 421 | +### `reload_extension` |
| 422 | + |
| 423 | +**Description:** Reloads an unpacked Chrome extension by its ID. |
| 424 | + |
| 425 | +**Parameters:** |
| 426 | + |
| 427 | +- **id** (string) **(required)**: ID of the extension to reload. |
| 428 | + |
| 429 | +--- |
| 430 | + |
| 431 | +### `trigger_extension_action` |
| 432 | + |
| 433 | +**Description:** Triggers the default action of an extension by its ID. |
| 434 | + |
| 435 | +**Parameters:** |
| 436 | + |
| 437 | +- **id** (string) **(required)**: ID of the extension to trigger the action for. |
| 438 | + |
| 439 | +--- |
| 440 | + |
| 441 | +### `uninstall_extension` |
| 442 | + |
| 443 | +**Description:** Uninstalls a Chrome extension by its ID. |
| 444 | + |
| 445 | +**Parameters:** |
| 446 | + |
| 447 | +- **id** (string) **(required)**: ID of the extension to uninstall. |
| 448 | + |
| 449 | +--- |
| 450 | + |
| 451 | +## Memory |
| 452 | + |
| 453 | +### `take_memory_snapshot` |
| 454 | + |
| 455 | +**Description:** Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks. |
| 456 | + |
| 457 | +**Parameters:** |
| 458 | + |
| 459 | +- **filePath** (string) **(required)**: A path to a .heapsnapshot file to save the heapsnapshot to. |
| 460 | + |
| 461 | +--- |
0 commit comments