BrowseCTL

Automation

WebDriver automation CLI for AI-driven browser control. Provides session management, tab control, element interaction, screenshots, batch execution, and an interactive REPL.

Install

openclaw skills install browserctl

browsectl

CRITICAL: Before doing anything, run browsectl setup to detect installed browsers and auto-download the matching WebDriver binary. Sessions persist to .browsectl/sessions.json across CLI invocations — you do not need to create a new session every time.

WebDriver automation CLI for AI-driven browser control. browsectl provides subcommands for browser session management, tab control, element interaction, screenshots, batch execution, and an interactive REPL.

Installation

npm install -g @yorelog/browsectl
browsectl setup

Skills

Session & Driver Lifecycle

skills/session.md

Session & driver lifecycle management.

CommandDescription
setupDetect browsers and download WebDriver binary
statusShow driver and session status
driver-startStart the WebDriver server
session-createCreate a new browser session
session-listList all active sessions
session-useSwitch the default session
session-deleteDelete a session

Browser Commands

skills/browser.md

Browser interaction commands — navigate, click, type, screenshot, scroll, read state, wait.

CommandDescription
run --type openNavigate to a URL
run --type clickClick a DOM element by CSS selector
run --type fillType text into an input field character by character
run --type pastePaste text via clipboard simulation
run --type screenshotCapture a DOM element to PNG
run --type scrollScroll the page or a specific element
run --type titleGet the current page title
run --type last-message-contentExtract the last message block (chat UIs)
run --type waitWait for a condition (visible, hidden, URL, title, JS)

Tab Management

skills/tabs.md

Tab management — list, create, switch, and close browser tabs.

CommandDescription
tab-listList all open tabs
tab-createOpen a new tab
tab-switchSwitch to a tab by index, alias, or handle
tab-closeClose a tab

Batch Execution

skills/batch.md

Batch execution — run single commands, sequential batches from JSON files, and parallel groups.

CommandDescription
runExecute a single WebDriver command
batchRun a sequence of commands from a JSON file

Selector Syntax

skills/selectors.md

CSS selectors with ::text(/regex/flags) extension for filtering elements by text content.

Interactive REPL

skills/repl.md

Interactive REPL — live command entry, tab-completion, persistent history.

CommandDescription
replStart the interactive REPL

Global CLI Flags

FlagDefaultDescription
--browserchromeBrowser to automate: chrome or edge
--serverhttp://127.0.0.1:9515WebDriver server URL
--chromedriver(auto-detected)Path to WebDriver binary (chromedriver / msedgedriver)
--chrome-binary(auto-detected)Path to browser binary
--user-data-dir~/.browsectl/<browser>-profileBrowser user-data directory
--profile-directoryDefaultBrowser profile directory name
--headlessfalseRun browser in headless mode
--viewport1024,768Viewport size as width,height
--session(default session)Session ID to operate on

Platform Support

OSx64arm64
macOS
Linux
Windows