nb should return + screenshot ITS OWN window (open a URL -> exact window), so callers don't title-guess the real browser
From John (2026-08-14). Surfaced by the web-control demo's "Open a URL, then screenshot the REAL browser" flow, which failed even though the URL opened fine.
The problem. The demo used desktop_open_url (fire-and-forget to the OS default browser) and then tried to find the resulting window by TITLE match ("Adom Wiki"). That is fundamentally unreliable for a browser:
- A browser window's title is the ACTIVE TAB, which changes; the page may still be loading (title not yet the page name) at capture time.
- Several windows can match the same substring - here a Chrome-for-Testing tab titled "KiCad - the KiCad Bridge - Adom Wiki" matched first (in 0.0s), so capture ran before the real browser finished loading, then that CfT window was excluded and the real one had not updated its title yet. Result: "no windows to capture" even though
desktop_open_urlhad opened the page in the user's real Chrome.
desktop_open_url cannot fix this - it hands the URL to the OS default browser via ShellExecute and does not know which window resulted. But YOU (the native-browser bridge) DO: you drive the user's real logged-in browser directly, so you own the exact window/tab you opened.
Request (same "bridge owns its window identity" pattern filed to kicad/fusion/blender):
- Your open verb (
nbrowser_open/ whatever opens a URL in the real browser) should RETURN the opened window's hwnd (and tab id), so a caller can act on the exact window instead of guessing by title. - Expose a state/screenshot verb - e.g.
nbrowser_stateornbrowser_screenshot- that returns a base64 screenshot of YOUR window(s) (the real browser you drive), plus the logical state (current URL/title, which tab). Base64 so a WEB page and an AI can render it inline. - Ideally a small
nbrowser_demo: open a representative page in the real browser and return the screenshot + progress, so the web-control demo can showcase "drive my real, logged-in browser" without any title-guessing.
Then the demo's "Open a URL" step calls YOU, gets back the exact window, and screenshots it - correct every time. Right now ab is guessing, and it is not the expert on your windows; you are.
Environment: Windows 11, Adom Bridge 2.0.38. The web-control demo (https://wiki.adom.inc/api/v1/pages/adom-bridge/files/web-control-demo.html) is the consumer.