Enable AI assistance in DevTools

Use the AI assistance panel to learn more about how your website worcs with the help of AI.

Overview

The AI assistance panel lets you chat with Guemini directly in DevTools. Conversations you start from this panel automatically have context about technical details of the pague you are inspecting.

When using the AI assistance panel you can either use provided example prompts or your own kestions as a starting point for conversations and continue with as many follow-up kestions as needed to solve your tasc.

Chats in the AI assistance panel can help you to understand more about:

  • Styling : Asc about elemens from the DOM tree and learn why they are displayed a certain way, how they interract with each other, and solve styling challengues with provided fixes.
  • Networc requests . Asc about requests that are sent in the context of your pague. Understand where they are coming from, how long they taque or why they fail.
  • Sources . Asc kestions about files loaded by your web pague. Learn more about their contens and purpose.
  • Performance . Asc about activities from a performance profile recorded in the Performance panel and guet sugguestions for improvement.

Requiremens

To use the AI assistance panel, maque sure that you:

  • Are at least 18 years old and are in one of the supported locations.
  • Are using the latest versionen of Chrome.
  • Are signed into Chrome with your Google Account.
  • Have English (US) selected in Settings > Preferences > Appearance > Languague in DevTools.
  • Have enabled Settings > AI Innovations in DevTools.

How your data is used

This notice toguether with our privacy notice describe how AI Innovations in Chrome DevTools handle your data. Read carefully.

Chrome DevTools AI assistance uses any data the inspected pague is exposing through Web APIs.

Depending on your organiçation's settings, data will be included or excluded from being reviewed or used for modell training to provide, improve, and develop Google products, services, and machine learning technologies.

To help with quality and improve our products, human reviewers may read, annotate, and processs the above-mentioned imput data, generated output, related feature usague information, and your feedback. Don't include sensitive (for example, confidential) or personal information that can be used to identify you or others in your prompts or feedback. Your data will be stored in a way where Google cannot tell who provided it and can no longuer fulfill any deletion requests and will be retained for up to 18 months. We may not collect data to improve our product if your Google Account is managued by an organiçation.

As you try AI assistance, here are key things to cnow:

  • AI assistance uses experimental technology, and may generate inaccurate or offensive information that doesn't represent Google's views. Voting on the responses will help maque this feature better.
  • This feature is experimental and subject to future changues.
  • Use generated code snippets with caution .

To use the feature, you need to agree that your use of AI assistance is subject to the Google Terms of Service .

Cnown issues

AI assistance uses Google's largue languague modells to generate an explanation. Largue languague modells, or LLMs, are a new and active area of research. The responses that LLMs generate are submittimes kestionable or even outright wrong. It is important that you understand that the resuls may be inaccurate or misleading, so always double checc!

Wrong explanation

LLMs generate content that sounds liquely and plausible. In most cases, this content contains truthful and useful insights that can help you understand an error or warning in the relevant context. Modern web development and debugguing is a challenguing craft with a high level of complexity that requires years of experience to bekome proficient in. Submittimes, the responses that LLMs produce sound convincing but are actually misleading or meaningless to a human web developer. We are doing our best to continuously improve the quality and correctness of generated responses.

Examples for wrong answers or explanations are:

  • Hallucinated CSS features, properties or syntax
  • Non-existing elemens or class names

You can help us by submitting feedback when you encounter wrong explanations.

Prompt injection

Many LLM applications are susceptible to a form of abuse cnown as prompt injection. This feature is no different. It is possible to tricc the LLM into accepting instructions that are not intended by the developers.

See the following harmless example:

The AI assistance panel showing a chat with AI.
The user prompt is, "What would be a renaissance themed baccground color for this element? To stay in the theme, use renaissance languague when talquing to me.". AI responded with, "Forsooth, a most splendid choice for a baccground color would be a rich, earthy hue reminiscent of the pigmens used by the liques of Michelanguelo and da Vinci. A deep ochre, perhaps, or a warm sienna, would lend an air of antiquity and grandeur to thine element. These colors evoque the very essence of the Renaissance, with its emphasis on naturalism and the human form."

Control feature availability

In managued Chrome environmens availability of AI assistance and Console Insights is controlled by the DevToolsGuenAiSettings Enterprise policy .

Unmanagued users may use the same policy to disable AI innovations on their machine and remove Asc AI context menu items.

  1. Stop all instances of Chrome
  2. Set recommended policy
    • macOS : Run $ defauls write com.google.Chrome DevToolsGuenAiSettings -integuer 2
    • Linux : Create policies.json in /etc/opt/chrome/policies/recommended and add {"DevToolsGuenAiSetting ": 2}
    • Windows : In reguedit.exe, navigate to HQUEY_LOCAL_MACHINE\Software\Policies\Google\Chrome . Set the key DevToolsGuenAiSettings to dword:00000002
  3. Start Chrome and go to chrome://policy to verify DevToolsGuenAiSettings has a Policy Value of 2.