What does this do that playwright-cli doesn't?
It most certainly does not require any glue code. Playwright cli gives you basically all of this out of the box.
https://github.com/microsoft/playwright-cli?tab=readme-ov-fi...
If coding agents are given the Playwright access they can do it better actually because using Chrome Developer Tools Protocol they can interact with the browser and experiment with things without having to wait for all of this to complete before making moves. For instance I've seen Claude Code captures console messages from a running Chrome instance and uses that to debug things...
I'm pretty sure OP wrote their own version of playwright because they didn't know this existed.