Skip to main content

Module cli

Module cli 

Source

Modules§

agent_instructions
Canonical instructions for agents using browser-control.
cookies
browser-control cookies — export cookies from the active browser.
curl
browser-control curl — invoke the system curl with browser credentials.
env_resolver
Resolve the BROWSER_CONTROL environment variable / --browser argument into a concrete browser endpoint.
eval
browser-control eval — evaluate a JS expression in a page.
fetch
browser-control fetch — run an HTTP request from the page’s context.
list
list-installed and list-running subcommand handlers.
mcp
browser-control mcp subcommand entry point.
output
Output helpers for CLI subcommands: aligned tables and JSON.
route
Shared routing preamble + named-tab dispatch for the page-evaluating CLI commands (eval, fetch, storage).
routing
Shared routing glue for the <browser>[/<tab>] positional commands (eval, fetch, storage, …).
set
set / get / unset subcommand handlers.
show
show subcommand: explicitly reveal a controlled browser for login or debugging. Normal automation keeps browser windows/tabs in the background.
start
start subcommand: launch a browser and register it.
storage
browser-control storage — local/sessionStorage get/set/list.
tab
browser-control tab subcommand: named-tab lifecycle backed by the SQLite tabs table. Commands: tab open, tab list, tab adopt.
targets
browser-control targets — list page targets in the active browser.
trace
One-line structured trace per CLI dispatch.
wait
browser-control wait — block until the browser endpoint is ready.
wait_for_cookie
browser-control wait-for-cookie — block until a cookie appears.