kunchenguid/chrome-devtools-axi

The most agent-ergonomic browser automation

What it solves

Browser automation is often token-hungry and awkward for AI agents: raw MCP responses are verbose, and many agents waste tokens and turns. chrome-devtools-axi gives agents a single, compact CLI that performs combined operations (navigate, capture, suggest next steps) and encodes output in TOON format, cutting token usage by ~40% vs raw JSON. It also guards against stale element references (STALE_REF) so agents fail loudly instead of silently misbehaving.

How it works

The CLI wraps chrome-devtools-mcp behind a persistent bridge server. The first command starts a detached bridge that keeps the MCP session alive across invocations (so Chrome doesn't restart each time). The bridge speaks to chrome-devtools-mcp over stdio (or Streamable HTTP in shared mode) and the CLI communicates with the bridge over HTTP on localhost:9224. Commands like open, click, and snapshot produce an accessibility tree snapshot with UID refs, which agents can pass back exactly as printed. The skill installation (via npx skills) teaches agents to invoke the CLI on demand, and a session hook can inject ambient browser context into agent sessions.

Who it's for

Developers and teams building AI agents that need real browser automation — for tasks like form filling, page extraction, debugging console or network, performance audits, or multi-step browsing flows. It's especially useful for agents that need to be token-efficient and reliable, and it works with Claude, Codex, OpenCode, and any agent that can run an AXI-compliant CLI.

Highlights

  • Token-efficient output — TOON encoding cuts token usage ~40% vs raw JSON (per benchmarks, 57% fewer input tokens than raw chrome-devtools-mcp).
  • Combined operations — one command navigates, captures, and suggests next steps, reducing agent turns.
  • Contextual suggestions — every response includes actionable next-step hints.
  • Persistent bridge — keeps the MCP session alive across commands; auto-starts and heals itself.
  • Stale-ref protection — UID refs are generation-tagged and verified; stale ones fail with STALE_REF instead of silently no-op'ing.
  • Plugin-style installation — no npm install required; just npx skills add ... and the agent loads the CLI on demand.
  • Session hook — optional ambient browser context for Claude Code, Codex, and OpenCode.
  • Rich CLI — commands for navigation, interaction, page management, emulation, debugging (console/network), performance (Lighthouse, traces, heap), and more.

Related

  • Project
  • Project
  • Project
  • Project
  • Project