# Chrome DevTools Connect

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/idea/llms.txt).

The [Chrome DevTools Connect](https://plugins.jetbrains.com/plugin/35419-chrome-devtools-connect) plugin adds the `chrome-devtools-cli` skill, thus providing integration between an [Air](https://www.jetbrains.com/help/idea/agents-in-ide.html.md) session and [Chrome DevTools](https://developer.chrome.com/docs/devtools) and allowing agents to access live runtime data and perform browser interactions. The agent opens pages, clicks through user flows, reads console errors and network requests, and checks its own fixes in a real browser before it reports the task as done.

<a id="what_your_agent_can_do"></a>

## What your agent can do with Chrome DevTools Connect

Test user flows
: Open pages, click, fill and submit forms, and handle dialogs, like a manual end-to-end test with no test scripts to write.
:
:
:
:
: ```
: @Chrome Open browser at localhost:3000 in a separate window, click, fill, and submit forms, and handle
: dialogs
: ```

Debug runtime errors
: Read console messages and network requests to find what broke, fix the code, and check the page again.
:
:
:
:
: ```
: @Chrome reproduce the error from this issue and confirm the fix
: ```

See what rendered
: Take screenshots and DOM and accessibility tree snapshots.
:
:
:
:
: ```
: @Chrome Open browser at localhost:3000, make screenshots, and save them in ./tmp/screenshots
: ```
:
:
:
: To open the built-in IDE Browser, use the `@browser` alias.
:
:
:
:
: ```
: @Chrome Open @browser at localhost:3000, make screenshots, and save them in ./tmp/screenshots
: ```

Check responsive layouts and themes
: Emulate screen sizes, dark mode, and slow networks.
:
:
:
:
: ```
: @Chrome Open browser at localhost:3000 in the dark theme
: ```
:
: To open the built-in IDE Browser, use the `@browser` alias.
:
:
: ```
: @Chrome Open @browser at localhost:3000 in the dark theme
: ```

Find performance issues
: Record performance traces to find slow page loads and layout shifts.
:
:
:
:
: ```
: @Chrome record a trace and find out why the dashboard loads slowly
: ```

Run Lighthouse audits
: Check accessibility, SEO, best practices, and agentic browsing, then fix the failures.
:
:
:
:
: ```
: @Chrome run a Lighthouse audit and fix the failures
: ```

<a id="chrome_connect_before_you_start"></a>

## Before you start

<a id="chrome_connect_before_you_start_steps"></a>

Procedure:

1. Make sure the Air and Chrome DevTools Connect required plugins are enabled on the Settings | Plugins page. For more information, refer to [Plugins](https://www.jetbrains.com/help/idea/managing-plugins.html.md).

2. Make sure you have [Node.js](http://nodejs.org/), version 20.19+, 22.12+, or 23+ installed and added to the `PATH` variable.

3. Make sure your project is [trusted](https://www.jetbrains.com/help/idea/project-security.html.md).

4. In the Settings dialog ([Settings… shortcut](https://www.jetbrains.com/help/idea/llms-keymap-index.md "ShowSettings")), go to `AI | Skills`, and make sure the `chrome-devtools-cli` skill is enabled.

![Chrome-devtools-cli skill enabled](https://resources.jetbrains.com/help/img/idea/2026.3/chrome_connect_before_you_start_chrome_devtools_skill.png)

To open your applications in the built-in IDE Browser, make sure the `ide-browser` skill is enabled.

![IDE Browser skill enabled](https://resources.jetbrains.com/help/img/idea/2026.3/chrome_connect_before_you_start_ide_browser_skill.png)

<a id="chrome_devtools_invoke"></a>

## Run your agent with Chrome DevTools Connect

<a id="chrome_devtools_invoke_steps"></a>

Procedure:

1. [Start a new Air session](https://www.jetbrains.com/help/idea/agents-in-ide.html.md#open-manage-agent-sessions) or switch to the tab with an existing one.

2. Type your prompt, use the `@Chrome` alias to call the `chrome-devtools-cli` skill, for example:

```
@Chrome open localhost:3001, test the login form, and check for console errors.
```

The session tab shows a report:

![The results of a prompt execution](https://resources.jetbrains.com/help/img/idea/2026.3/ws_chrome_devtools_report.png)

> **Note:**
> Write prompts in plain words, for example:
>
>
>
> * `@Chrome check the checkout page on a mobile screen and in dark mode`
>
> * `@Chrome reproduce the error from this issue and confirm the fix`
>
> * `@Chrome record a trace and find out why the dashboard loads slowly`
>
> * `@Chrome run a Lighthouse audit and fix the failures`

3. To have a visible Chrome window opened, add this request to your prompt, for example:

```
@Chrome open localhost:3001, test the login form, check for console errors, and open the login
page in the browser.
```

The session tab shows a report and opens the  `login` page in the browser:

![The session tab shows a report and opens the login page in the browser](https://resources.jetbrains.com/help/img/idea/2026.3/ws_chrome_devtools_report_page_opened.png)

To open the application in the built-in IDE Browser, use the `@browser` alias:

```
@Chrome open localhost:3001, test the login form, check for console errors, and open the login
page in the @browser.
```

![The session tab shows a report and opens the login page in the IDE Browser](https://resources.jetbrains.com/help/img/idea/2026.3/ws_chrome_devtools_report_page_opened_ide_browser.png)

<a id="run_lighthouse_audit"></a>

## Run Lighthouse audit

You can ask your agent to run an automated check of your application using [Google’s Lighthouse tool](https://developer.chrome.com/docs/lighthouse/overview). The tool evaluates your application in several areas:

* [Performance](https://web.dev/performance-scoring/)

* [Accessibility](https://web.dev/accessibility/)

* [SEO](https://web.dev/seo/)

* [Best practices](https://web.dev/best-practices/)

<a id="run_lighthouse_audit_steps"></a>

Procedure:

1. [Start a new Air session](https://www.jetbrains.com/help/idea/agents-in-ide.html.md#open-manage-agent-sessions) or switch to the tab with an existing one.

2. Type your prompt using the `@Chrome` alias to call the `chrome-devtools-cli` skill, for example:

```
@Chrome run a Lighthouse audit and fix the failures
```

The audit produces a report with scores and fixed discrepancies.

![The results of a Lighthouse audit](https://resources.jetbrains.com/help/img/idea/2026.3/run_lighthouse_audit.png)

<a id="chrome_devtools_control_browser"></a>

## Stay in control of your browser

By default, the agent starts its own headless Chrome with a temporary profile, so your tabs and logins are not affected. To test a page behind a `login` page, let the agent connect to your own Chrome.

<a id="chrome_devtools_control_browser_steps"></a>

Procedure:

1. Open `chrome://inspect/#remote-debugging`.

2. To allow connections, select the Allow remote debugging for this browser instance checkbox.

![Allow remote debugging for this browser instance](https://resources.jetbrains.com/help/img/idea/2026.3/chrome_devtools_control_browser_allow_connections.png)

3. In your prompt, add:

```
@Chrome connect to my browser
```

Chrome asks for permission on every connection.

![Chrome DevTools Connect asks for permission](https://resources.jetbrains.com/help/img/idea/2026.3/chrome_devtools_control_browser_ask_permission.png)

While the agent is attached, Chrome shows a `Chrome is being controlled by automated test software` banner.

![A banner is added](https://resources.jetbrains.com/help/img/idea/2026.3/ws_chrome_devtools_report_page_opened_with_banner.png)

<a id="chrome_devtools_disable"></a>

## Disable Chrome DevTools Connect

<a id="chrome_devtools_disable_steps"></a>

Procedure:

Do one of the following:

* In the Settings dialog ([Settings… shortcut](https://www.jetbrains.com/help/idea/llms-keymap-index.md "ShowSettings")), go to `Plugins`, locate the Chrome DevTools Connect plugin, and click Disable.

* In the Settings dialog ([Settings… shortcut](https://www.jetbrains.com/help/idea/llms-keymap-index.md "ShowSettings")), go to `AI | Skills`, locate the `chrome-devtools-cli` skill, and clear the checkbox next to it.

* Press `Shift` twice to open the [Search Everywhere](https://www.jetbrains.com/help/idea/searching-everywhere.html.md) window and type Registry in the search field . In the Registry dialog, locate the `llm.agents.contrib.webstorm.chromeDevtoolsCli.skill.enabled` key and clear the checkbox next to it.

> **Tip:**
> You can also configure a list of allowed skills in the Value field of the `llm.agents.contrib.bundled.skills.allowlist` key.

<a id="ide_browser_disable"></a>

## Disable IDE Browser

<a id="ide_browser_disable_steps"></a>

Procedure:

Do one of the following:

* In the Settings dialog ([Settings… shortcut](https://www.jetbrains.com/help/idea/llms-keymap-index.md "ShowSettings")), go to `Plugins`, locate the IDE Browser plugin, and click Disable.

* In the Settings dialog ([Settings… shortcut](https://www.jetbrains.com/help/idea/llms-keymap-index.md "ShowSettings")), go to `AI | Skills`, locate the `ide-browser` skill, and clear the checkbox next to it.

* Press `Shift` twice to open the [Search Everywhere](https://www.jetbrains.com/help/idea/searching-everywhere.html.md) window and type Registry in the search field . In the Registry dialog, locate the `llm.agents.contrib.webstorm.ideBrowser.skill.enabled` key and clear the checkbox next to it.

> **Tip:**
> You can also configure a list of allowed skills in the Value field of the `llm.agents.contrib.bundled.skills.allowlist` key.

