Skip to content

Browser

devxian edited this page Nov 28, 2026 · 13 revisions

English | 한국어

Browser

A browser tab is one operating system web view: WKWebView on macOS, WebView2 on Windows and WebKitGTK on Linux. One tab holds one page, and you and the agent see the same screen. To open several pages, use several Cozzle tabs.

Address bar

Press ⌘L or click the address bar to move there. The first click selects the whole address. Cozzle turns what you type into an address like this:

You type Cozzle opens
http://…, https://… As typed
localhost:3000, 127.0.0.1:8080/a Adds http://
A word with a dot, such as buzzle.tools Adds https://
Anything else (text with spaces and so on) A search with the search engine. Google by default^settings

Press Enter to move focus to the page.

  • Cozzle does not navigate to addresses other than http, https and about:blank (no file: or app links).
  • Links that open a new window open in the same tab by default. A setting can open them in the default browser of the operating system instead.

Buttons and keys

Action Button Key
Back, forward ←, → ⌘[, ⌘]
Reload ⟳ ⌘R
Change viewport size Right of the address bar ⇧⌘M (next size)

Cozzle shortcuts work even when the page has keyboard focus.

Viewport sizes

Click the viewport button to show the list of sizes in place of the address row.

Mode CSS size
Fit (맞춤) Fills the tab
Mobile (모바일) 390×844
Tablet (태블릿) 820×1180
PC 1440×900
TV 1920×1080

A size larger than the tab is scaled down to fit, keeping its ratio, and centered. It is never scaled up. Choose the default size for new tabs in Settings. Agents change it with commands such as cozzle browser device mobile.

Staying signed in

All browser tabs share cookies, localStorage and IndexedDB, and the data survives a restart of Cozzle. Sign in once and you stay signed in.^browser-data

  • On macOS, the web view's default store is already kept on disk. The web view drops session cookies (cookies without an expiry time) when the app quits, so Cozzle writes them to ~/.config/cozzle/browser-session-cookies.plist (readable only by you, mode 600) and restores them before the first tab of the next run.
  • On Windows and Linux, Cozzle gives the web view a Cozzle folder under the user data folder.
  • To remove everything, go to Settings → Browser, click Clear cookies and site data (쿠키·사이트 데이터 지우기), and confirm with Clear all (모두 지우기). This signs you out of every site.

Agents use the session you signed in with. The agent guide tells them not to ask for or type passwords, and to ask you to sign in instead.^agent-guide

JavaScript dialogs

On macOS, a page's alert, confirm and prompt appear as a sheet on the window. The title shows the full origin of the site, such as https://example.com:8443.^js-dialogs

  • When the same origin opens a second dialog, the dialog shows Don't show dialogs from this page again (이 페이지의 대화상자 더 보지 않기). If you select it, dialogs from that origin get the default answer for the rest of the run.
  • Dialogs from a tab you are not viewing are not shown. They get the default answer: alert is ignored, confirm returns false and prompt returns null.
  • On Windows and Linux, the web view engine shows its own dialogs.

Extensions and user scripts

Install, turn on, turn off and delete them in Settings → Extensions (확장). Only what you choose yourself is installed. Agents have no command to install anything.^extensions

Kind Install Where it applies
Extension Install extension (확장 설치) → choose an extension folder, .zip or .crx Every browser tab. macOS 15.4 or later only
User script Install script (스크립트 설치) → choose a .user.js file Pages that match an @match line in the // ==UserScript== header. Cozzle injects it after the document loads (DOMContentLoaded). All operating systems
  • An extension with a toolbar action shows its popup with the Open (열기) button.
  • Installing an extension with the same name replaces the old one.
  • Changes to on and off apply when you reload the page.
  • Cozzle keeps installed files in ~/.config/cozzle/extensions/ and ~/.config/cozzle/userscripts/, and the list of turned-off items in ~/.config/cozzle/extensions.json.

Agents can only list them, with cozzle browser extensions. If a page looks different than expected, check the extensions you turned on first.

Developer tools

  • Web inspector: open it with cozzle browser devtools.
  • Agents inspect the page with cozzle browser console (console output and JS errors, latest 500), network (fetch and XHR, latest 300), storage, cookies, perf and eval. See Cozzle CLI.

Draw on the page

Agents use drawing to point at a problem on screen. Drawings do not block clicks and follow scrolling.

cozzle browser snapshot                       # elements with refs (e1, e2 ...)
cozzle browser draw box e12 --label "Margins overlap"
cozzle browser draw highlight ".price" --color '#FF2D55'
cozzle browser draw arrow 100 100 300 220 --label "Here"
cozzle browser draw clear

Shapes: box, highlight, rect, ellipse, arrow, line, text and clear. Coordinates are CSS pixels relative to the document. The full syntax is in Cozzle CLI.

Good to know

  • While you view another tab, the browser web view is hidden. The page stays open.
  • After a restart, browser tabs restore their http and https addresses.
  • If Cozzle cannot create the web view, the tab turns into a terminal tab and a notification gives the reason.

Clone this wiki locally