# Browser Control Automation Skill

> Lets your AI click, type, and scrape websites like a real browser.

- **What it does:** Lets your AI assistant open and use a real web browser for you: clicking, typing, taking screenshots, testing pages, and pulling information off sites. You end up with tasks done on websites without doing them by hand.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_d0ccc71558d33feb62d96558`
- **Creator:** Mariah Brunner (@itsmariahbrunner) on Instagram
- **Posted by:** 2 creators: [@anthropic](https://www.youtube.com/watch?v=rBJnWMD0Pho), [@robert mill](https://www.youtube.com/watch?v=gauu0JeE1ro)
- **Reach:** Creators' posts about it have 711,993 views
- **Safety:** Checked by Orbit: use with care. Drives logged-in browser in background; broad automation permissions
- **Last updated:** 2026-11-25
- **Page:** https://orbitinbox.app/s/browser-automation-control-itsmariahbrunner

## What you'll need

- Browser Use Cloud: hosted cloud browsers for bot-protected pages (optional, because local Chrome works too)

## Skill

---
name: browser-use-chrome-control
description: Use when a task needs a real browser: clicking, typing, logged-in sessions, JS-rendered pages, or screenshots, driven through the browser-use CLI over CDP.
---

# Browser Use: control Chrome

## What this does
Drives a real Chrome browser through the `browser-use` CLI (Chrome DevTools Protocol): open tabs, click, type, read pages, take screenshots.

## When to use
- The task needs interaction (click, type, navigate), the user's logged-in session, JS rendering, or a bot-protected page.
- Do NOT use it for a basic fetch of public information. If a plain HTTP request can read it (public page, API, docs), use `curl` or your fetch tool. Escalate to the browser only if the direct fetch fails or returns a shell page.

## How to run it
1. Run commands with heredocs. Helpers are pre-imported:

bash
browser-use <<'PY'
print(page_info())
PY


2. The first navigation for a task is `new_tab(url)`, not `goto_url(url)`. The daemon keeps the attached tab across CLI calls, so do not call `new_tab()` in every script.
3. Keep one working tab per task/site. Check `current_tab()` and `list_tabs()` and reuse a matching tab with `switch_tab()`. Do not leave duplicate tabs or close tabs you did not create.
4. Never call `activate_tab(target)` automatically, because it pulls Chrome to the foreground. Use it only if the user explicitly asks to see that tab. Screenshots and CDP input work in the background.
5. Find elements with the accessibility tree, not screenshots. `cdp('Accessibility.getFullAXTree')['nodes']` lists role, name and `backendDOMNodeId`. Filter in Python before printing.
6. Click: AX node -> box center -> `click_at_xy(x, y)` -> verify with a targeted `js(...)` or `page_info()`. Get coordinates with `q = cdp('DOM.getBoxModel', backendNodeId=n)['model']['content']; x, y = sum(q[0::2])/4, sum(q[1::2])/4`. If the values are negative or oversized, scroll first.
7. Use `js(...)` for raw HTML only when the AX tree lacks the element (canvas, exotic widgets). Take a screenshot when layout or imagery matters.
8. After navigation, call `wait_for_load()`. If the tab is stale or internal, call `ensure_real_tab()`.
9. For very long text input, avoid per-character typing. Find a faster input method and verify the page kept the exact value.
10. Login walls: stop and ask. Exception: use available SSO automatically when Chrome is already signed in. Still stop for passwords, MFA, consent, or an ambiguous account choice.
11. Raw CDP: pass parameters as keywords, e.g. `cdp('Input.insertText', text='hello')`. The second positional argument is a session ID.
12. When the task is done, close tabs you created that are no longer needed. Keep a tab open if the user needs to see it or closing it would lose unsaved state.

## Connection and local Chrome
- Use the default daemon for normal sequential work. Do not invent per-job `BU_NAME` values, because each new local daemon can trigger another Chrome Allow prompt.
- If it cannot connect, run `browser-use --doctor`. If Chrome is running without remote debugging, it opens `chrome://inspect/#remote-debugging`.
- On macOS, when Chrome asks for remote-debugging permission, leave the original command running and call `browser-use mac-approve` in a second call. Keep the same `BU_NAME` if one was used. Never rerun the original command.
- If the page pauses while hidden, do not foreground Chrome. For a focus-gated page, temporarily call `cdp('Emulation.setFocusEmulationEnabled', enabled=True)`, do and verify the operation, then disable it in a `finally` block. If that fails, report the limitation.

## Remote (cloud) browsers
Use them for parallel tasks, isolation, or captcha-prone sites. They need Browser Use Cloud auth. Check `browser-use auth status`, or run `browser-use auth login`.

bash
browser-use <<'PY'
start_remote_daemon('r7k2')
PY

BU_NAME=r7k2 browser-use <<'PY'
new_tab('https://example.com')
print(page_info())
PY


Use the same `BU_NAME` for every call after starting a remote daemon. When finished, ask: 'Should I close this browser now?' If yes, run `stop_remote_daemon(name)`. Remote daemons bill until stopped.

## Output
Hand back the extracted data or confirmation of the action taken, plus a screenshot when visual state matters. Report any limitation you hit (login wall, blocked page).

Credit: Based on public content by browser-use, packaged by Orbit.

Shared by Mariah Brunner, credited on Orbit.