browser namespace or legacy aliases.
browser identify
Get information about a browser surface including URL and title.browser open / open-split
Open a URL in a new or existing browser surface.string
Workspace context (defaults to
$CMUX_WORKSPACE_ID)string
Window context for routing
browser navigate / goto
Navigate a browser surface to a URL.boolean
Capture page snapshot after navigation completes
browser back / forward / reload
Navigate browser history or reload the page.browser url / get-url
Get the current URL of a browser surface.browser snapshot
Capture a text snapshot of the page DOM.string
CSS selector to snapshot (defaults to entire page)
number
Maximum DOM depth to traverse
boolean
Include interactive elements only
boolean
Alias for
--interactiveboolean
Include cursor position indicators
boolean
Use compact output format
browser eval
Evaluate JavaScript in the page context.browser wait
Wait for a condition to be met on the page.string
CSS selector to wait for
string
Wait for element containing text
string
Wait for URL to contain text
string
Alias for
--url-containsstring
Wait for load state:
load, domcontentloaded, networkidlestring
JavaScript function that returns truthy when condition is met
number
Timeout in seconds (default varies by condition)
number
Timeout in milliseconds
browser click / dblclick / hover
Interact with page elements.browser type / fill
Type text into input fields.type requires text, fill allows empty string to clear.
Examples:
browser press / key / keydown / keyup
Simulate keyboard input.browser check / uncheck
Toggle checkboxes.browser select
Select a dropdown option.browser scroll
Scroll the page or an element.string
Element to scroll (defaults to page)
number
Horizontal scroll amount in pixels
number
Vertical scroll amount in pixels (can be positional)
browser scrollintoview / scroll-into-view
Scroll an element into view.browser focus
Focus a page element.browser focus-webview
Focus the browser’s webview (give keyboard control to the page).browser is-webview-focused
Check if the browser’s webview has focus.browser screenshot
Capture a PNG screenshot of the page.string
Output file path for PNG screenshot
browser get
Extract data from page elements.get url
get title
get text
get html
get value
get attr
get count
get box
get styles
browser is
Check element state.visible- Check if element is visibleenabled- Check if element is enabledchecked- Check if checkbox/radio is checked
browser find
Find elements using various locator strategies.find role
find text / label / placeholder / alt / title / testid
find first / last
find nth
browser frame
Switch to an iframe context.browser dialog
Handle JavaScript dialogs (alert/confirm/prompt).browser download
Wait for a download to complete.string
Expected download path
number
Timeout in seconds
number
Timeout in milliseconds
browser cookies
Manage browser cookies.cookies get
cookies set
cookies clear
browser storage
Manage localStorage and sessionStorage.browser tab
Manage browser tabs (within the surface).tab list
tab new
tab switch
tab close
browser console
View or clear console messages.browser errors
View or clear page errors.browser highlight
Highlight an element on the page (visual debugging).browser state
Save or load browser state.browser addinitscript / addscript / addstyle
Inject scripts or styles into pages.browser viewport
Set the viewport size.browser geolocation / geo
Set geolocation coordinates.browser offline
Simulate offline mode.browser trace
Start or stop tracing.browser network
Manage network routes and requests.browser screencast
Start or stop video recording.browser input
Low-level input simulation.Legacy Aliases
These legacy commands are aliased to thebrowser namespace:
open-browser→browser opennavigate→browser navigatebrowser-back→browser backbrowser-forward→browser forwardbrowser-reload→browser reloadget-url→browser get-urlfocus-webview→browser focus-webviewis-webview-focused→browser is-webview-focused
--panel is accepted as a legacy alias for --surface in all browser commands.
Global Flags
string
Path to the cmux socket (default:
/tmp/cmux.sock or $CMUX_SOCKET_PATH)string
Socket authentication password (or use
$CMUX_SOCKET_PASSWORD)boolean
Output results in JSON format
string
Control ID output format:
refs, uuids, or both