Repository navigation
Browser
English | 한국어
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.
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 |
file:///…, or a path such as /Users/me/demo.gif or ~/demo.html
|
The local file. Pages and images can read only files in that file's folder (only the file itself when it sits directly in /, a top-level folder or your home folder) |
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.
-
The address bar shows the address of the page you see. While a new page is still loading, it keeps the old address, and if the load is cancelled or fails, the old address stays.
-
file:addresses open only when you or an agent opened them. A local page can follow links to files in the same folder (and its subfolders); a file opened alone (directly in/, a top-level folder or your home folder) allows only that exact file. A web page cannot move to or open afile:address. Besidesfile:, cozzle navigates only tohttp,https,about:blankandabout:srcdoc;data:loads only inside a frame andblob:inside a frame or from a page of the blob's own site. No app links or other schemes. -
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.
| 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. On Linux and Windows, only tab and workspace switching and focusing the address bar work from inside the page, since a page there could fake those keys.
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.
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 → Advanced → Site data, click Clear…, 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
Settings → Browser → Logins keeps a username and password per site. The password stays in the macOS Keychain.[^logins]
- An agent fills a saved login with
cozzle browser login --submit. cozzle fills it only when the tab's site (scheme, host, port) is exactly the saved site, and the agent never sees the password. After a fill, onlysnapshot(field values hidden),text,wait,click,hover,scroll,draw,press,type,select,check,uncheck,drag,upload,fillandperfrun on that page until it navigates away, and they take only refs ortext:targets, not CSS selectors. Everything else, includingeval,html,storage,console,network,tools,callandscreenshot, is refused. On forms that ask for the username first, cozzle fills the username, goes to the next screen and fills the password in the same call. - When you give an agent a site, username and password and ask it to sign in or save them, it saves them with
cozzle browser login save. The agent can only add new logins. It cannot change, delete or read existing ones; do that yourself in Settings. - Each fill and each save appears in Notifications. A save shows "An agent saved a login: · "; click it to open the Logins list.
- With Ask before agents use saved logins on, cozzle asks you in the browser tab before an agent fills or saves an account, once per account until cozzle quits.
Passkeys (WebAuthn) work in signed release builds on macOS 13.3 or later: passkeys in iCloud Keychain and other password managers, a passkey on your phone (scan the QR code) and USB security keys. macOS gives this to an app only when Apple has granted it the web browser passkey entitlement, and a build you compile yourself does not have it. In such a build, a site's passkey request fails at once, and a bar under the address bar says passkeys need the signed release, with Open in external browser.
Only you can start a passkey request. cozzle lets a request through only after you click or type in the page, and blocks it when an agent clicked, typed or ran a script on the page. Agents cannot read passkey responses that a site writes to the console.^agent-guide
On macOS, a page's alert, confirm and prompt appear as a card under the address bar of that tab, so other tabs and panes stay usable while the page waits for an answer. The card's first line shows the full origin of the site, such as https://example.com:8443. Enter answers OK and Esc answers Cancel; a prompt card has a text field.^js-dialogs
- When the same origin opens a second dialog, the card shows Don't show more dialogs from this page. Clicking it closes the dialog with the default answer, and later dialogs from that origin get the default answer for the rest of the run.
- Closing the tab answers an open dialog with the default answer.
- Dialogs from a tab you are not viewing are not shown. They get the default answer:
alertis ignored,confirmreturnsfalseandpromptreturnsnull. - On Windows and Linux, the web view engine shows its own dialogs.
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 and no @exclude or @exclude-match line. cozzle injects it after the document loads (DOMContentLoaded), also when the page has changed its address within the same site by then. 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.
- 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,perfandeval. See cozzle CLI.
Some websites offer tools for AI agents with WebMCP, a draft standard of the W3C Web Machine Learning Community Group. cozzle gives every https and localhost page document.modelContext (the 2026-11-24 draft), so these sites can register tools in cozzle tabs. Agents then use the tools instead of clicking through the page:[^webmcp]
cozzle browser tools # tools of the current page
cozzle browser call search_flights '{"from":"ICN","to":"NRT"}'- The tool runs in the page, as if the site's own button ran it. cozzle checks the input against the tool's schema first.
- Only tools of the page's own origin and its same-origin frames are shown. Tools in frames from other sites are not.
- When a tool asks for your input, cozzle sends a notification (A page tool needs you) and the agent waits up to 10 minutes.
- Each call is listed in
cozzle browser console([webmcp] call ...). - Tool calls follow the same rules as clicks: after an agent call, passkey requests on that page are blocked until you click or type yourself, and after cozzle fills a saved login,
toolsandcallare blocked on that page. - Tool names, descriptions and results come from the website. cozzle marks them as untrusted data for the agent.
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 clearShapes: box, highlight, rect, ellipse, arrow, line, text and clear. Coordinates are CSS pixels relative to the document. The full syntax is in cozzle CLI.
- While you view another tab, the page stays open. On macOS it is moved outside the window instead of hidden, so its timers and animations keep full speed while an agent works on it in the background.
- A page's
window.print()opens the print sheet on macOS.^js-dialogs - Downloads go to your Downloads folder. When a file with the same name exists, the new one gets a number (
name (1).ext), andcozzle browser downloadsshows that final path. - A tab you can see in cozzle keeps running animations and transitions even when another window covers cozzle, so agents can work on it while you use another app.
- After a restart, browser tabs restore their
httpandhttpsaddresses. - If cozzle cannot create the web view, the tab turns into a terminal tab and a notification gives the reason.
[^webmcp]: src/browser_webmcp.js, src/webmcp.rs [^logins]: src/logins.rs
cozzle · MIT License · Repository · Open an issue · Report a vulnerability