🏴☠️ BOL - Can I Reduce Playwright's Token Use by 98%? Probably Not, lol
Status: ON HOLD Repo: https://github.com/jaystarz1/playwright-smart-mcp.git Last update: 20251223 - wrestling with this thing to get it working was burning through tokens like crazy, lol. I still believe in it, but it couldn't write code the way Anthropic imagined. Every time it tried to activate a button or fill a field the action ended up closing the window, which sort of defeated the point. So it could open a browser window and navigate to a page, that is far as I got. All good. I'll come back to it when I have more time. 20251222 - Code execution with MCP was glitchy and very token intensive during iteration. I'm at the end of my credit week/window, so had to stop iterating - it was killing me, lol. Note 1 - BOL: build out loud. Note 2 - as I figure out this community, I'm going to have to start identify what I'm still building. CC built this, but now that I'm testing and iterating. I'm finding which use cases it can and can't do, and updating the repo as I go. Testing and iterating is: a) the most interesting part of building (for me); b) always longer than the initial build. TL;DR - What's Playwright MCP? It gives CC the ability to open a browser window and navigate the web. Once you log in to an app it will take over and get to work. Very handy for flattening the learning curve and cuts bad UI/UX frustration by 100%. The problem is that is that OG Playwright is an absolute token 🐷. It loads 5K just on being called. As it stumbled around invoking tools, that could bloat to 25K over multiple calls in a session 🤯. Edit - I'm testing and iterating, now Edit - I'm building (I conceived/CC is building) a wrapper that cuts that down based on this Anthropic concept - https://www.anthropic.com/engineering/code-execution-with-mcp - It calls three tools to start and then figures out which of the former's 22 tool capabilities are needed to get the job done.