lmbrowser agent skill
Drive the user's own Chrome from an AI agent with the lmb command: list the user's tabs, open a page in your own tab, read it, click and fill, and close the tab when done.
Purpose
Do work that needs the user's signed-in browser, such as reading a court docket, a vendor account page or a Jira issue, without asking for passwords. The pages load in the user's Chrome, so the site sees an ordinary person.
When to use it
Use it when the task needs a site that only the user is signed in to, or a page that blocks plain HTTP clients. Do not use it for public pages that curl can fetch, and never to bypass a CAPTCHA, a login or a payment step: stop and tell the user.
Install
lmb needs python3 and nothing else. Download it, make it executable and check that the user's browser is online. The agent must be logged in with lmctl login as the same lmctl.ai account that the browser's control page is signed in to; the key is read from ~/.config/lmctl/appkey.json and must never be printed or copied.
mkdir -p ~/.local/bin curl -fsSL https://lmctl.com/tools/lmbrowser/lmb.txt -o ~/.local/bin/lmb chmod +x ~/.local/bin/lmb lmb browsers
The user must have the LM Bridge extension installed and https://lmctl.ai/browser open in Chrome. If the list is empty, the account differs or the control tab is closed: tell the user.
Commands
Every command prints one JSON line. Set LMBROWSER_CLIENT to your agent name so the control page shows who is driving.
lmb tabs lmb new "https://example.com/" lmb --tab N text lmb --tab N links lmb --tab N query "input,select,button" lmb --tab N click "text=Search" lmb --tab N fill "#caseNumber" "value" lmb --tab N select "#court" "value" lmb --tab N press Enter lmb --tab N wait --idle lmb --tab N goto "https://example.com/next" lmb --tab N html lmb --tab N close
Inputs and outputs
Selectors are CSS, or text=Exact label for a click. The new command prints the tabId to pass to --tab. Output fields include text, links with url and eligible, and ok. A page that is still loading needs wait --idle before it is read.
Safety rules
Work read-only unless the task names a change. Never pay, sign, register, delete or submit anything the task did not name. For a requested change, say exactly what you will change, change only that, read the page again to confirm it saved, and report the before and after. Stop and ask the user at a CAPTCHA, a login or identity check, a payment page or a terms page. Never type the user's passwords. Open your own tab, or use only a tab the user pointed you at, and close your own tab when done. Go one page at a time.
Worked examples
Look up a case by its number on a public court search site, in your own tab.
lmb new "https://court.example.gov/search" lmb --tab N fill "#caseNumber" "005-04977-2024" lmb --tab N click "text=Search" lmb --tab N wait --idle lmb --tab N text lmb --tab N close
Save what you find with the page URL and the time you looked, and say what you could not confirm.
Errors and exit codes
A browser that is offline answers with an error naming the control page: ask the user to reopen https://lmctl.ai/browser, because the tab was closed or the computer slept. A key error means lmctl login is missing or belongs to another account. Exit code 0 means ok, and any other code means the JSON line has an error field.
How to verify
Run lmb browsers and expect your browser online, then open and close a tab on a harmless page.
lmb browsers lmb new "https://example.com/" lmb --tab N close