DevTools Generative AI: AI Assistance, Console Insights, Settings and Data Policy
How Chrome DevTools Gemini features work: enable AI assistance, chat debugging, console insights, code suggestions, privacy, and enterprise policy.
This page summarises Google Chrome DevTools documentation on generative AI in the debugger: the AI assistance chat panel, Console insights, performance trace labels, and AI innovations settings. Together they let you ask questions in context about styling, network, sources, and performance while you inspect a page.
AI innovations settings: enable DevTools AI features
Section titled “AI innovations settings: enable DevTools AI features”Settings > AI innovations is where you manage which AI features are on in DevTools.
Settings > AI innovations lets you manage the list of AI features in DevTools.
— Google, AI innovations
To turn a feature on, open Settings, read Things to consider at the top of the AI innovations tab, then enable the toggle for that feature and expand its dropdown for details and privacy notes.
The tab lists two main features:
| Feature | What it does |
|---|---|
| Console insights | AI explanations for console errors and warnings |
| AI assistance | Contextual chat help for your development workflow |
Separate toggles also cover items such as Code suggestions (see Generate code in Console and Sources).
Requirements to use AI assistance and Console insights
Section titled “Requirements to use AI assistance and Console insights”Before AI assistance, Console insights, or other AI innovations work, Google’s get started and Console insights guides list the same baseline checks:
- Your location is supported (documentation references GE as an example region flag).
- You are at least 18 and in a supported location.
- You use a current version of Chrome.
- You are signed into Chrome with a Google Account.
- DevTools language is English (US) under Settings > Preferences > Appearance > Language.
- Settings > AI innovations has the relevant toggles enabled.
For Console insights, if the toggle will not enable, confirm you are signed into Chrome with your Google Account.
AI assistance panel: chat with Gemini while debugging
Section titled “AI assistance panel: chat with Gemini while debugging”The AI assistance panel lets you chat with Gemini inside DevTools. Conversations started from the panel carry context about the page you are inspecting.
DevTools provides an AI assistance panel that helps you understand your website and fix issues by chatting with a built-in AI agent.
— Google, Chat with AI assistance
The agent is tuned for web development. It can answer questions about the whole page or focus on styling, networking, performance, sources, and more. It can pick context for you (DOM nodes, network requests, trace events) and sometimes run DevTools actions on its own—such as Lighthouse audits or performance traces—then explain steps and link to the relevant UI. From Chrome 149 onward, autonomous actions, step-by-step walkthroughs, and prompt generation for external coding agents are called out explicitly in the chat documentation.
How to open the AI assistance panel
Section titled “How to open the AI assistance panel”The panel opens in the drawer by default. Common entry points:
- Click the AI assistance button on the right of the main DevTools toolbar (Chat with AI assistance).
- From Elements, Network, Sources, or Performance: use the Debug with AI icon next to an item, or right-click and choose a Debug with AI prompt.
- Command Menu: type
AI, run Show AI assistance (Drawer badge). - More options > More tools > AI assistance.
Opening from a panel pre-selects matching conversation context in the chat.
Prompting: with and without selected context
Section titled “Prompting: with and without selected context”When you start a new chat, example prompts can prefill the input; press Enter or the send control to submit your own text.
Open-ended prompts (no prior selection) can trigger automated investigation. Examples from Chat with AI assistance:
- Accessibility questions may start a Lighthouse accessibility audit.
- Questions about slow requests can list suspects with links into the Network panel.
- Performance questions may record a trace using your chosen settings.
- How-to questions about DevTools itself get direct product help.
Contextual prompts start with whatever you selected—an element, request, file, or trace entry. You can change context anytime by selecting something else in a panel, or paste a snippet from Sources into the chat.
Conversation flow, walkthrough, and paused actions
Section titled “Conversation flow, walkthrough, and paused actions”Sending a prompt starts an agent conversation. Progress appears in steps; the first status is Investigating… while the agent runs JavaScript in the page to gather data via web APIs and may drive DevTools (traces, audits).
When an answer is ready, Show agent walkthrough or Show thinking expands to show executed snippets, returned data, and readable widgets. Widgets can include Reveal to jump to the matching DevTools location. Follow-up prompt chips may appear under the answer.
If proposed code has side effects, the chat pauses until you Continue or Cancel; input is disabled while paused. Suggested edits may appear in the Changes panel; the agent applies changes inside DevTools, and workspace setup can persist edits to your sources.
Conversations persist across reloads; history controls sit at the top-left of the panel. Rate responses to help improve the experimental feature.
Console insights: understand console errors and warnings
Section titled “Console insights: understand console errors and warnings”Console insights (Console Understand this message) explains errors and warnings without leaving the Console.
Ask Gemini to provide insights right in the DevTools Console, so you can better understand errors and warnings.
— Google, Understand errors and warnings better with console insights
How to get an explanation for a console message
Section titled “How to get an explanation for a console message”On first use you may be sent to Settings > AI innovations to enable Console insights. Then:
- Open the Console for the page you are debugging.
- Hover the message; click the lightbulb Understand this error (or equivalent for warnings).
- After a short wait, read the explanation under the message.
- Optionally expand Sources and related content or Data used to understand this message.
Google notes that Sources and related content is shown to non-enterprise users outside Europe. If the explanation is weak, Use search instead opens a web search for the error. Report legal issue is available for content concerns.
Inputs described in Understand errors and warnings better with console insights include the console message, stack trace, related source, and associated network headers—with the same LLM accuracy caveats as AI assistance.
Code suggestions in Console and Sources
Section titled “Code suggestions in Console and Sources”From Chrome 147, Gemini can generate code in the Console and Sources panels (and CSS completion in Elements > Styles). Priority language is JavaScript; text-based page resources are in scope per Generate code in Console and Sources.
Enable Code suggestions under Settings > AI innovations, or press Command + i / Control + i while editing and accept Things to consider.
To generate: put a natural-language prompt in a comment (for example // Loop to check all img elements for valid alt attributes), press Command + i / Control + i, wait, then Tab or Enter to accept or Esc to reject.
Performance annotations: AI labels on the Main track
Section titled “Performance annotations: AI labels on the Main track”In the Performance panel, DevTools can suggest names for Main track items using Gemini.
Naming things is hard! DevTools can use Gemini to suggest a label name in the Main track based on the context.
First use shows that AI can be wrong, that trace data needed for the suggestion is sent to Google for analysis, and that you control the feature in settings. Auto annotations follow the same policy constraints as other AI features.
To label manually: double-click a Main track item, click Generate label, edit the suggestion if needed; annotations collect under the Annotations tab.
Data sent to Google and enterprise controls
Section titled “Data sent to Google and enterprise controls”Data usage and enterprise controls describes what leaves the browser and how admins configure behavior.
Default behavior by customer type
Section titled “Default behavior by customer type”| Customer category | Default | Allow without improving models | Disable feature |
|---|---|---|---|
| Consumers | Allow AI; data may improve models | n/a | Settings |
| Workspace Education | Allow without improving models | Policy | Policy |
| Chrome Enterprise | Allow without improving models | Policy | Policy |
| Third-party managed | Allow AI; data may improve models | Policy | Policy |
General collection on each AI trigger includes your prompt (text, images, screenshots), Google Account credentials for auth, and feedback ratings.
Context adds more only when needed—for example console message content and stack traces; DOM and CSS for styling questions; URLs, filtered headers, timing, and initiators for network questions; file contents for Sources; call-frame timing data and trace excerpts for Performance Generate label / Ask AI. Sensitive headers such as Cookie, Authorization, and custom X-* headers are excluded from network sharing where documented.
Human reviewers may process inputs and outputs for quality. Google asks you not to submit identifiable or confidential data. Retention and de-identification rules are stated in the same guide (including up to 18 months retention where applicable).
DevToolsGenAiSettings enterprise policy
Section titled “DevToolsGenAiSettings enterprise policy”Managed environments use DevToolsGenAiSettings:
| Value | Meaning |
|---|---|
0 |
Allow feature and improve models (default for consumers and many third-party managed) |
1 |
Allow feature without improving models (default for Chrome Enterprise and Workspace Education) |
2 |
Do not allow feature—UI entry points disabled |
Admins configure generative AI in the Google Admin console; see links under Enterprise users in Google’s doc.
Unmanaged users can set a recommended policy locally to disable AI innovations—for example DevToolsGenAiSettings 2 via platform policy files or registry, then verify at chrome://policy. Steps are duplicated in get started and data usage.
Common mistakes when relying on DevTools AI
Section titled “Common mistakes when relying on DevTools AI”- Trusting plausible but wrong output—Google documents hallucinated CSS, fake selectors, and convincing nonsense; treat answers as drafts.
- Skipping opt-in and locale requirements—features stay off or fail without sign-in, supported region, English (US) DevTools, and AI innovations toggles.
- Ignoring pause dialogs—side-effecting agent code waits for Continue; cancelling is the safe default when unsure.
- Pasting secrets into prompts—stack traces and headers can expose structure; prompts and feedback should avoid personal or confidential data per Google’s notices.
- Assuming training is off—consumer defaults may allow model improvement unless policy or settings say otherwise.
How to check this on your site
Section titled “How to check this on your site”- Open your page in Chrome, open DevTools, and confirm Settings > AI innovations toggles match what you intend (AI innovations).
- Sign in with the Google Account you use for development and confirm DevTools Language is English (US) (get started).
- Trigger a known console error and use Understand this error; expand Data used to understand this message and compare with Console insights data description.
- From the toolbar, open AI assistance, ask a scoped question about a selected network request or element, and expand Show agent walkthrough to verify linked DevTools locations (Chat with AI assistance).
- On managed devices, open
chrome://policyand confirmDevToolsGenAiSettingsmatches your organization’s choice (Data usage and enterprise controls).
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about so it can be corrected.