Why this? I have seen too many tools pretending they can get matched CSS style rules but actually only computed styles. The real DevTools data — CSS rules, selectors, and cascading order — is what we want to retrive programmatically, yet CDP is hard to use, full of undocumented quirks. One have to observe Devtools' behavior and check the huge DevTools frontend codebase to know how to use it. Having worked on a Chromium fork before, I feel it is time to solve this once and for all.
What can we build around this? That's what I'd love to ask you all.
Probably like many, MCP was what came to my mind first, but then I wondered that given this simple API, maybe agents could just write scripts directly? Need opinions.
My own use case was CSS inlining. This library was actually split from my UI cloner project:
https://github.com/devtoolcss/devtoolcss
I was porting a WordPress + Elementor site and wanted to automate the CSS translation from unreadable stylesheets.
So, what do you think? Any ideas, suggestions, or projects to build upon? Would love to hear your thoughts — and feel free to share your own projects in the comments!
iapj4•2h ago