browserlane
CLI reference

CLI reference

Complete reference for every browserlane CLI command and flag.

The full reference for every bl command, argument, and flag — generated from bl v0.1.1. 110 commands across 9 groups.

See the CLI ↔ MCP mapping for how each command lines up with the agent-facing MCP tools.

CommandDescription
bl goGo to a URL and print page info
bl backNavigate back in browser history
bl forwardNavigate forward in browser history
bl reloadReload the current page
bl waitWait for an element, URL, text, page load, or JS condition
bl wait fnWait until a JS expression returns truthy
bl wait loadWait until the page is fully loaded
bl wait textWait until text appears on the page
bl wait urlWait until the page URL contains a substring

Interaction

CommandDescription
bl clickClick an element (optionally navigate to URL first)
bl dblclickDouble-click an element
bl hoverHover over an element by CSS selector
bl typeType text into an element (optionally navigate to URL first)
bl fillClear an input field and type new text
bl pressPress a key on a specific element or the focused element
bl keysPress a key or key combination
bl selectSelect an option in a <select> element
bl checkCheck a checkbox or radio button
bl uncheckUncheck a checkbox
bl focusFocus an element
bl scrollScroll the page or an element
bl scroll into-viewScroll an element into view
bl dragDrag from one element to another
bl mouseMouse control (click, move, down, up)
bl mouse clickClick at coordinates or current position
bl mouse downPress a mouse button down
bl mouse moveMove the mouse to coordinates
bl mouse upRelease a mouse button
bl uploadSet files on an input[type=file] element

Inspect page

CommandDescription
bl urlGet the current page URL
bl titleGet the current page title
bl textGet text content of the page or an element
bl htmlGet HTML content of the page or an element
bl attrGet an HTML attribute value from an element
bl valueGet the current value of a form element
bl countCount matching elements
bl findFind elements by CSS selector or semantic locator
bl find altFind element by alt attribute
bl find labelFind input by associated label text
bl find placeholderFind element by placeholder attribute
bl find roleFind element by ARIA role
bl find testidFind element by data-testid attribute
bl find textFind element by text content
bl find titleFind element by title attribute
bl find xpathFind element by XPath expression
bl mapMap interactive page elements with @refs
bl a11y-treeGet the accessibility tree of the current page
bl isCheck element state (visible, enabled, checked, actionable)
bl is actionableCheck actionability of an element (Visible, Stable, ReceivesEvents, Enabled, Editable)
bl is checkedCheck if a checkbox or radio is checked
bl is enabledCheck if an element is enabled
bl is visibleCheck if an element is visible on the page
bl pagesList all open browser pages
bl framesList all child frames (iframes) on the page
bl frameFind a frame by name or URL substring

Capture

CommandDescription
bl screenshotCapture a screenshot (optionally navigate to URL first)
bl pdfSave page as PDF
bl recordRecord browser sessions (screenshots and snapshots)
bl record chunkManage recording chunks
bl record chunk startStart a new chunk within the current recording
bl record chunk stopPackage current chunk into a ZIP file (recording stays active)
bl record groupManage recording groups
bl record group startStart a named group in the recording
bl record group stopEnd the current recording group
bl record startStart a recording
bl record stopStop recording and save
bl highlightHighlight an element with a red outline for 3 seconds

Browser state & emulation

CommandDescription
bl cookiesManage browser cookies
bl cookies clearClear all cookies
bl storageExport or restore browser state (cookies, localStorage, sessionStorage)
bl storage restoreRestore browser state from a JSON file
bl downloadManage browser downloads
bl download dirSet the download directory
bl dialogHandle browser dialogs (alert, confirm, prompt)
bl dialog acceptAccept a dialog (optionally with prompt text)
bl dialog dismissDismiss a dialog
bl contentReplace the page HTML content
bl diffCompare current state vs previous
bl diff mapCompare current page elements vs last map
bl viewportGet or set the browser viewport size
bl windowGet or set the OS browser window size, position, or state
bl mediaOverride CSS media features
bl geolocationOverride the browser geolocation

Scripting

CommandDescription
bl evalEvaluate a JavaScript expression (optionally navigate to URL first)
bl sleepPause execution for a number of milliseconds

Session & daemon

CommandDescription
bl startStart a browser session. Without arguments, launches a local browser. With a URL argument, connects to a remote BiDi WebSocket endpoint.
bl stopStop the browser session
bl pageManage browser pages (new, close, switch)
bl page closeClose a browser page by index (default: current page)
bl page newOpen a new browser page
bl page switchSwitch to a browser page by index or URL substring
bl daemonManage the browserlane daemon (background browser process)
bl daemon startStart the browserlane daemon
bl daemon statusShow daemon status
bl daemon stopStop the browserlane daemon

Agent & MCP

CommandDescription
bl mcpStart the Model Context Protocol (MCP) server.
bl add-mcpRegister the browserlane MCP server with a coding agent (claude, claude-desktop, cursor, vscode, codex)
bl add-skillInstall browserlane browser skill for Claude Code

Setup & diagnostics

CommandDescription
bl installDownload Chrome for Testing and chromedriver
bl is-installedCheck if Chrome and chromedriver are installed (exit 0 = yes, exit 1 = no)
bl pathsPrint browser and cache paths
bl versionPrint the version number
bl completionGenerate the autocompletion script for bl for the specified shell. See each sub-command's help for details on how to use the generated script.
bl completion bashGenerate the autocompletion script for the bash shell.
bl completion fishGenerate the autocompletion script for the fish shell.
bl completion powershellGenerate the autocompletion script for powershell.
bl completion zshGenerate the autocompletion script for the zsh shell.

Advanced / diagnostics

Low-level probes for debugging the browser/WebDriver stack — not part of the everyday workflow.

CommandDescription
bl launch-testLaunch browser via chromedriver and print BiDi WebSocket URL
bl bidi-testLaunch browser, connect via BiDi, send session.status
bl ws-testTest WebSocket connection (type messages, see echoes)

On this page