WhoBuilt

Building Agent Interfaces: Lessons from Chrome DevTools (MCP) for Agents

Jun 5, 2026· 23 min· 9.7K views·Watch on YouTube

Speaker

Michael Hablich, product manager for Chrome Developer Tools at Google and a university guest lecturer, shares lessons from building Chrome DevTools for agents at an AI Engineer event.

Build for agents as a distinct user group

Hablich says coding agents could generate code but often lacked ways to validate it. Sending them a multi-megabyte trace with about 50,000 lines of JSON overwhelmed their context windows. DevTools instead returns Markdown and semantic summaries that point agents to relevant performance findings, such as Core Web Vitals.

Measure successful work and reduce token costs

Hablich separates effectiveness, whether an agent completes the task, from efficiency, measured through tokens, tool calls, and duration. He recommends tracking tokens per successful outcome within specific user journeys, since scraping a page and debugging a responsive layout have different costs. DevTools also limits niche tools, offers a slim mode, and provides a CLI for chaining commands and post-processing locally.

Help agents recover and find the right tools

Useful error messages can help an agent correct its own mistakes; DevTools added guidance when a requested history entry could not be found. The team also uses proactive detours to steer performance profiling toward its trace tool, plus a troubleshooting skill for MCP setup problems. After finding that one broad debugging tool was ineffective and 25 tools were hard to navigate, Hablich emphasizes clear descriptions that explain purpose and when to use each tool.

Keep consent aligned with security boundaries

DevTools Autoconnect lets a person share their Chrome session with an agent, but Hablich argues that repeated consent prompts are intentional safeguards. He describes different protections for local development, controlled CI environments, and agents with full internet access, including separate profiles or containers, domain allowlists, and prompt injection mitigations. A shared browser tool does not mean these environments should share a security model.

Takeaways

  • Measure both task completion and tokens per successful outcome, comparing similar user journeys.
  • Summarize large data sources into focused, semantic results agents can act on.
  • Keep niche tools out of default context and use local command chaining when it reduces model processing.
  • Write tool descriptions with clear purpose and activation criteria, then review them as models change.
  • Match consent and browser isolation to the agent’s environment and level of internet access.

Mentioned in this talk

Search inside this talk

What was claimed 11

Show all 11 facts

Related talks