Reverse engineered prompt

Build me a simple local web app in Python where I can open several browser tabs and see each one as a live camera style screenshot feed in the page. I want to open a tab with a URL, switch between tabs, close them, and control them from the app by navigating to a new URL, clicking elements, typing text, scrolling, going back, going forward, and refreshing.

The live view should keep updating automatically every second or so, and it should always show the newest screenshot without getting stuck on a cached image. Please also expose a small JSON API for listing tabs, creating tabs, controlling a tab, and fetching the latest screenshot image for a tab.

Make it easy to run on localhost at port 5000, and if possible keep it friendly for Docker or a simple Railway style deploy. Use Chromium through Playwright since that seems to fit this project. Look up current docs online if you need to.

Want more depth? Deep Reverse