Gallon argues for giving agents shell-based tools rather than an MCP server. He says both approaches achieved tasks about 83% of the time in a study, while CLI workflows were more reusable and faster: one task took seven turns and under a minute with CLI, compared with 71 round trips and eight minutes with MCP. He also cites Anthropic reporting CLI use can cost up to 75 times less in tokens.
The Dark Arts of Web Automation: Teaching Agents to Use Websites Like Humans
Speaker
Corey Gallon of Rexmore speaks at AI Engineer about using Chrome DevTools Protocol and code-driven loops to automate browser tasks.
Gallon describes Chrome DevTools Protocol as the interface behind Chrome’s developer tools and says agents can use it to inspect and control a browser. He groups its capabilities around seeing page structure, accessibility information, or pixels; observing network traffic and logs; and acting through clicks, keystrokes, and navigation.
His operating loop is to sense the page, take one action, verify the result through another channel, and repeat. When a page blocks an approach, he recommends moving up a three-rung ladder: try a JavaScript interaction first, then trusted CDP input, then vision and humanlike mouse movement. Explore until a method works, then save it as code or an agent skill for reuse.
Gallon demonstrates automating personalized emails in Outlook by capturing a programmatic interaction once and reusing it across a batch. For an online store that ignores synthetic clicks, he switches to trusted CDP input. He then describes using screenshots, vision, trusted clicks and keystrokes, and mouse movement to interact with Turnstile, text and image challenges, and reCAPTCHA.
For reCAPTCHA, Gallon separates the deterministic browser-driving code from the agent’s visual reasoning. The code handles clicks, screenshots, and repeated rounds, while the agent identifies image tiles and returns its selections. He says this division keeps interactions fast enough for timed challenges and makes the method repeatable.
Takeaways
- Use a CLI when browser actions need to be programmed once and reused.
- Verify each browser action through a different signal than the one used to perform it.
- Start with the simplest interaction method and move to more involved input only when the page requires it.
- Keep predictable browser work in code and reserve the model for tasks that need visual judgment.
- Record successful interaction paths so future runs do not have to rediscover them.
Mentioned in this talk
Search inside this talk
What was claimed 7
- featureCustomer data platform: Drives browser interactions through Chrome
“An agent can drive it using the Chrome DevTools Protocol.”
YouTube Unverified1 source· Talk
- metricCLI: CLI and MCP achieved tasks successfully roughly 83% of the time in a cited study
“achieved those tasks successfully roughly 83% of the time”
YouTube Unverified1 source· Talk
- metricCLI: 71 MCP round trips and eight minutes versus seven CLI turns and under one minute for the same task
“MCP took 71 round trips and eight minutes ... CLI only seven turns and under one minute”
YouTube Unverified1 source· Talk
- metricCLI: Up to 75 times cheaper than MCP in token cost, as attributed to Anthropic
“the CLI can be as much as 75 times cheaper”
YouTube Unverified1 source· Talk
- feature
Chrome Agent: Makes it easy for agents to write code to replay CDP interactions“makes it really easy for your agents to write code to replay CDP interactions”
YouTube Unverified1 source· Talk
- featuremetag ladder: Three rungs of increasingly humanlike interaction, climbing only as required
“It has three rungs, and you climb only as high as the page forces you.”
YouTube Unverified1 source· Talk
- feature
Chrome Agent: Installable in the Python ecosystem“It's installable in the Python ecosystem.”
YouTube Unverified1 source· Talk













