by arcanemachiner · 2w ago · 0 comments
> If you want to wrap it in a jsonrpc api for mcp, this is like 4 hrs or a work for an llm, point them at a pkg thats uses CDP like go-rod.
As someone who has vibe-coded my own such wrapper, I think that there is a lot of value in having a common interface for an agent to interact with CDP beyond just slinging together ad-hoc scripts until something works. CDP exposes a lot of features, but exposing them to an agent in a sane, consistent way takes a good bit of work.
It's also taken me a good bit longer than 4 hours by now. The features really add up over time.
I have done this periodically - the last time, coincidentally, was yesterday because I'd upgraded node and forgotten to reinstall playwright-cli so I noticed agents jumping through hoops to use it.
So I started a review session, asked why that was happening, and then asked the agent to do a few tasks of its choice using it and report any issues. Besides installing playwright properly it suggested a few very minor procedural updates but that everything else was fine. This is unusual for agents because they'll nearly always find things to do. If they say something is fine it's usually a sign that's it's genuinely pretty good.
I used gpt 6.1 sol / medium for the review.
Granted, Ive neen building browser automation tools on top of cdp for many years now.