Repository navigation
browser-cli 0.2.9
Changes since 0.2.6. Install: npm install -g @phnx-labs/browser-cli
0.2.9
browser textputs the page's scroll position back when the page is too busy to answer while it loads lazy parts. If the first check scrolled aninclude-fragmentinto view and then timed out, the page was left scrolled to it.- The README opens with what the tool is for, and npm lists a description and keywords.
0.2.8
browser clickin a tab that is not the selected one takes 0.2 s again, not 10 s. Tasks open as tabs of one window, so when several agents share a browser every task but the newest is in the background, and Chrome holds each mouse move sent to a background tab for 5 s while delivering a press at once. Since 0.2.3 a click moved the mouse twice before pressing, so each click by every other agent waited 10 s, and in the 2026-11-07 several-agents test browser-cli took 83 s per trial against 27 to 54 s for the other tools. In a background tab the click now presses without the moves, and it is still a trusted mouse click. Without the moves, a background tab no longer checks whether the mouse reaches the element or whether hovering opens something over it; if the press does not land, the click reports it, as it already did for a swallowed click.
0.2.7
browser doneandbrowser stopwhile a task is recording finish the recording first. They closed the tab and left ffmpeg encoding the last frame until the duration cap: the file stayed empty (0 bytes) until then and came out as long as the cap (60 s for a 4 s task by default), and a newstart --recordwith that task's name was refused asalready recording. Stopping a whole profile finishes its tasks' recordings too.browser recordcaptures a task whose tab is not the one selected in the window. Tasks open as tabs of one window, and Chrome stops painting a tab that is not selected, so recording an earlier task froze on its first frame, andrecord starton a task already in the background failed withChrome produced no screencast frame within 5s. While it records, the tab now has focus emulation on, so Chrome keeps painting it; this is turned off when the recording stops. Screenshots were not affected.browser console,browser errors,browser requestsandbrowser responsebodycapture again on Chrome, Brave, Edge, Comet and other Chromium browsers. Since the first open-source release they returnedNo console logs,No errorsandNo requests captured, andresponsebodytimed out, even on a page that logged, threw and fetched every half second: their listeners read the session id from the event'sparams, where Chrome never puts it, so every event was dropped. They now read it where Chrome sends it, as the screencast and dialog listeners already did. Firefox and native Arc are unchanged.browser pdf <output>saves to the path you give it. It always saved under the task'ssessions/<task>/folder and printed that path, whatever path you passed, relative or absolute, whilescreenshot -ohonored its path. The PDF is now copied to the requested path, relative to where you ran the command, the same wayscreenshot -odoes. Run against another machine with--device, the PDF is copied back to that path on this machine. With no path, it still saves under the task and prints theTip: auto-saving to …line.browser upload -f <file>uploads an ordinary file. It refused every file outside its internal staging folder withStage files via 'browser upload-stage <path>' first., andbrowser upload-stagewas never a command, so no file could be uploaded from the CLI.uploadnow copies the files into a new private folder under~/.agents/browser/cache/uploads/itself and hands Chrome those copies, so the page still never reads your live file. The copies are deleted when they are no longer needed: right away after a drop or a failed upload, and, for a file input or file chooser, whose file Chrome reads when the page submits it, when the task closes (done,stop, or the idle cleanup), even after the browser service restarts. The page now receives the file under its own name; staged copies used to get random names such as292fda02c084c0af.txt. A relative path is still refused withUpload path must be absolute, and a directory withUpload path is not a file.