Use the sandbox browser (agent-browser with no --cdp) when no login is
needed. Use the user's browser when the user says "my browser" or "my Chrome",
or the task needs their logged-in state.
kortix chrome status shows whether a browser is attached. kortix chrome ls
lists the user's browsers.
<what_the_user_sees> Your tabs open in a group named after this session (in browsers that have tab groups), with a glow around them and a control bar with Take over and Stop. The user may pause you (Take over) or end your access to the browser (Stop) at any time. Input commands fail while they have control; wait and retry.
The user picks the access mode in the extension or in Kortix settings: without
asking, ask first (your first use shows a prompt in Chrome and waits up to
90 seconds), or off.
</what_the_user_sees>
- All tabs (the default):
agent-browser --cdp 9333 tab listlists every tab in every window. Answer questions about what the user has open from that list. You start in a tab of your own; work there withopenandtab new. Switch to one of the user's tabs (tab <id>) only to read it or when the user asks you to act in it, and never navigate a tab of theirs away from its page. - Only tabs it opens: you see your own tabs and nothing else. If the user
asks about their other tabs, say so in one line and tell them where to change
it: the Kortix extension's options → Tabs → All tabs, or Kortix Settings →
Kortix in Chrome. Then run
kortix chrome useagain.
<working_well>
- Every command crosses the internet to the user's machine (about 0.3 s each). Chain related commands in one shell call, and re-snapshot only after the page changed.
- Page dialogs: after a click that opens
confirm()/prompt(), answer it withagent-browser --cdp 9333 dialog accept(ordismiss). If a command is stuck on a dialog for a second, the extension answers OK so nothing deadlocks. - Uploads work from the sandbox:
agent-browser --cdp 9333 upload <selector> /path/in/sandbox(up to 10 MB in total). Downloads land in the user's Downloads folder on their machine, not in the sandbox. - Elements without an accessible role (drag targets, plain
divs) have no@ref: use a CSS selector (drag "#column-a" "#column-b"). check/uncheckonly on checkboxes; confirm withis checked. The last tab cannot be closed (Cannot close the last tabis harmless). </working_well>


