OmniScout Docs
Browser & Computer automation

Browser automation

Drive Chromium with @eN refs — navigate, click, fill, tabs, network, login, CAPTCHA.

omniscout browser controls your browser. The core loop never changes:

omniscout browser navigate https://example.com   # 1. open a page
omniscout browser inspect --refs-only             # 2. get @eN refs and screenshot together
omniscout browser click '@e3'                    # 3. act on a ref
omniscout browser check '@e4'                     # set a checkbox or switch on
omniscout browser uncheck '@e5'                   # set it off
omniscout browser screenshot --out /tmp/out.png  # capture a later view

Where pages open

Choose whether pages open in your configured desktop browser or in an isolated managed background window:

omniscout settings set browser-automation headful    # configured desktop browser
omniscout settings set browser-automation headless   # managed window

When you omit --headful and --headless, OmniScout uses your saved browser preference. Either flag overrides that preference for one command.

Use browser inspect when you need the current accessibility refs and a visual view at the same point in your workflow. Add --screenshot-out /path/page.png to save the image, or --base64 when your agent needs the image in JSON.

The @eN ref model

snapshot lists the elements you can act on (@e1, @e2, …). Every interaction targets a ref. Two rules:

  1. Re-snapshot after navigation or a stale-ref error — refs expire when the page changes. If the page changes during capture, wait for it to settle and retry the snapshot.
  2. Prefer --refs-only for a flat actionable list; drop it for the full tree when you need hierarchy.

If navigation times out, the error response includes the snapshot generation and URL context. If it includes a landed URL with navigation_complete: false, the document is available even though the requested load event did not finish. Take a fresh snapshot and continue in the same tab before deciding whether to retry. With a connected extension, the URL may be the last known one; inspect the current session before acting on it.

omniscout browser snapshot --refs-only
omniscout browser snapshot --overlay   # draw @e labels on the page (debugging/demos)
omniscout browser navigate https://example.com --wait-until domcontentloaded
omniscout browser open https://example.com      # alias of navigate
omniscout browser back
omniscout browser forward
omniscout browser reload
omniscout browser get url                       # current URL
omniscout browser get title                     # page title

navigate accepts --profile (persistent login context), --session (tab group), --new-tab, --headful/--headless, --auto-captcha, and --wait-until. See Daemon & sessions for profiles vs sessions.

The first navigation opens a target separate from the page you were using: a new tab when you use the connected browser extension, or a separate window when OmniScout controls the desktop browser on macOS. Later navigations in the same session reuse that target. Isolated browser sessions open in their own window.

When Dia is already open, OmniScout opens a new tab in that app and leaves your current page alone. It does not start a second Dia process for browser automation.

With the MCP server, use browser_tab_list to inspect open tabs, then browser_tab_switch with a tab ID or exact URL to bind the session to one. Use browser_tab_new to open another tab in that session, or browser_attach_cdp to connect to an already-running Chromium browser. browser_tab_close closes a chosen tab or the active tab. browser_back, browser_forward, and browser_reload handle page history and refresh. MCP also has dedicated tools for native dropdowns, checkboxes, paste, drag and drop, local file uploads and downloads, and pointer movement when a page cannot be operated through element refs. Use browser_screenshot_image when an agent needs the screenshot returned as an image it can inspect directly. Use browser_find_image to locate a visual target when it has no accessible label. Pass a local template path when the image is on the OmniScout machine, or image_base64 when the agent only has image data. A successful match returns viewport coordinates that can be used with browser_click. MCP's browser_wait can wait for a selector to attach, detach, appear, or hide using selector_state, matching omniscout browser wait selector. Use browser_find to locate page text or a regular expression, and browser_fill_form to fill several named fields in one call. For page diagnosis, browser_network captures requests and browser_console captures messages and errors. browser_clipboard reads or writes tab clipboard data. browser_webmcp lists or calls tools offered by a page, while browser_page_assets lists or bundles its assets.

Clicking, typing, selecting

ActionCommandNotes
Clickbrowser click '@e3'--button, --clicks, --mod, or --coord x y for vision agents
Fill (replace)browser fill '@e5' "text"Replaces existing content
Select textbrowser select-text '@e5' "text"Selects a match in an editable field; add --prefix or --suffix when text repeats
Type (append)browser type '@e5' "text"Appends; --delay-ms between keystrokes
Pastebrowser paste '@e5' "text"Inserts at cursor without clearing; use --format html to keep rich formatting in editable areas when supported. Ordinary fields receive the HTML text content; md inserts Markdown source as text.
Selectbrowser select '@e5' "option"Native <select> elements. In native computer mode, use an accessible dropdown ref and its visible option label; one option at a time.
Keysbrowser key EnterCombos like cmd+s, ctrl+c
Hoverbrowser hover '@e7'Or --coord x y

For actions that can change page data, pass --authorized after reviewing the target and value. For example: omniscout browser fill '@e5' "name" --authorized. | Checkbox or switch | browser check '@e8' / browser uncheck '@e8' | Sets and verifies the requested state in browser sessions; Computer Use needs an accessible control with a readable state | | Upload | browser upload '@e9' file.pdf | Attaches a file to a page’s upload field in managed or connected browser sessions | | Scroll | browser scroll down | Page or element, with --amount | | Check state | browser is '@e3' visible | Visibility, enabled, checked, … |

fill vs type vs paste: fill clears first (forms), type appends like a human (chats, editors), paste drops text at the cursor (large blobs).

For MCP agents, browser_action_batch runs a short sequence in one call. Each step uses the same action fields as the matching browser tool; for example:

[
  {"type":"click","selector":"@e3"},
  {"type":"fill","selector":"@e5","value":"hello"},
  {"type":"select","selector":"@e8","value":"Pro"},
  {"type":"press","combo":"Enter"}
]

The batch supports navigation, click, fill, type, dropdown selection, key press, scroll, hover, wait, and screenshot steps. It stops at the first failed step and returns the completed results, the failed step's index, and the final page image. Set include_screenshot to false for text-only output. Use batches for actions that can safely run without checking the page between steps; use separate calls when a step may change what you need to inspect next.

The same sequence is available from the CLI as omniscout browser batch:

omniscout browser batch '[{"type":"click","selector":"@e3"},{"type":"wait","text":"Saved"}]' --session work --no-screenshot

These actions also work when the connected browser extension is controlling an already open tab. Use select for a native dropdown; custom dropdowns can be opened with click and completed with the visible option's ref. The extension also supports page property reads (get), element state checks (is), and coordinate based pointer movement and scrolling (browser mouse). OmniScout captures network requests and console messages as soon as it attaches to a page. Use network list/network tail or console list/console tail to read them. Run network start or console start to clear the current log and begin a fresh capture; use stop to pause capture. For native checkboxes, radio buttons, and switches, check and uncheck use the accessible state when the app exposes it. A selected radio button cannot be unchecked by itself. Custom switches without a readable state remain available through normal click actions. browser download '@eN' clicks the selected download control and saves the file to OmniScout's download folder. Repeated downloads with the same filename get numbered names so earlier files stay intact; pass --out to choose a path that can replace an existing file. For upload controls that open a file picker, run omniscout browser upload '@eN' ./report.pdf --open-chooser. Direct uploads to a file field use omniscout browser upload 'input[type=file]' ./report.pdf. Browser clipboard commands read or write text and supported clipboard items. Chrome may ask you to grant the extension clipboard access when you reload it. You can preview a page in print mode or emulate color and motion preferences in either managed or connected browser sessions. For example, run omniscout browser emulate-media --color-scheme dark --reduced-motion reduce; use reset for an option to restore that preference to the browser default. The page snapshot includes controls inside embedded frames. Use their @eN refs with browser actions as you would for controls in the main page. You can also target a frame with frame=<iframe CSS> >> <element CSS>, for example frame=iframe[name=checkout] >> input[name=email].

Reading the page

omniscout browser get text              # visible body text
omniscout browser get html              # page HTML (truncated ~500KB)
omniscout browser eval "document.title" # run JavaScript, return the value
omniscout browser extract-visible       # visible text, optional --schema shaping

Pass a JSON schema when you want named fields such as email or pricing instead of the full text. The result includes common page facts and values written under matching labels:

omniscout browser extract-visible --schema-inline '{"type":"object","properties":{"email":{"type":"string"},"headquarters":{"type":"string"}}}'

Waiting

Never sleep blindly — wait for the condition you actually need:

omniscout browser wait text "Order confirmed"
omniscout browser wait selector "#results" --state visible
omniscout browser wait selector "#loading" --state hidden
omniscout browser wait selector "#dialog" --state detached
omniscout browser wait networkidle
omniscout browser wait url "*checkout*"
omniscout browser wait --ms 2000 --timeout-ms 30000

Selector waits accept CSS selectors or @eN refs. Use --state attached, --state detached, --state visible (the default), or --state hidden to wait for the condition you need. wait also supports --url (match on current URL), --idle, and a fixed delay with --ms.

Tabs

omniscout browser tab list --session existing
omniscout browser tab switch 42 --session existing
omniscout browser tab switch --url https://example.com --session existing
omniscout browser navigate https://a.com --session multi
omniscout browser navigate https://b.com --new-tab --session multi
omniscout browser tab list --session multi
omniscout browser tab switch 0 --session multi
omniscout browser tab close 1 --session multi

With the browser extension connected, tab list can show your open browser tabs before you navigate. Switch by tab ID, or use --url to select a tab with that exact URL. If several tabs match the URL, use the tab ID instead.

Network & console capture

omniscout browser network start
omniscout browser navigate https://vercel.com/pricing
omniscout browser scroll down --amount 10
omniscout browser network stop
omniscout browser network list --filter "stripe|payment"
omniscout browser network detail 3          # full payload for one entry
omniscout browser network tail              # only entries since last tail

omniscout browser console start
omniscout browser console tail              # JS errors and console messages
omniscout browser console list
omniscout browser console stop

Natural-language actions

For fuzzy targets, let OmniScout resolve them:

omniscout browser observe "the search box"        # find candidate refs
omniscout browser act "click the top story"       # resolve + act
omniscout browser act "search box" --value "local-first agents"
omniscout browser act --ref @e7 --action hover      # hover an observed ref
omniscout browser act --ref @e8 --action select --value Pro  # select an option
omniscout browser act "submit" --dry-run          # resolve without acting

Verify with a snapshot afterwards — act is convenient but refs are deterministic.

Screenshots, PDFs, mouse

omniscout browser screenshot --out /tmp/page.png
omniscout browser screenshot --full-page --out /tmp/full.png   # top-to-bottom
omniscout browser screenshot --stitched --out /tmp/stitched.png  # scroll + stitch (PNG)
omniscout browser screenshot --ref '@e3' --out /tmp/el.png     # one element
omniscout browser screenshot --ref '#hero' --out /tmp/hero.png # element by CSS selector
omniscout browser screenshot --region 0,200,1280,800 --out /tmp/mid.png  # pixel rectangle
omniscout browser screenshot --delay 2.5 --out /tmp/late.png  # wait for animations
omniscout browser pdf --out /tmp/page.pdf --paper letter
omniscout browser mouse move --coord 400 300 --steps 8
omniscout browser mouse scroll --coord 400 300

PDF export works in a headless Playwright session or a connected Chrome tab. If you need to keep a visible Playwright window open, start a separate headless session for the export.

Element screenshots in Computer Use mode need a recent computer observe snapshot with visible bounds for the requested @eN ref. Computer Use captures the visible desktop, so full-page and stitched screenshots need a DOM browser session.

Use --steps to move through intermediate pointer positions; the default is a single direct move.

Login & CAPTCHA

Some sites need a human login once. Open a headful window, authenticate, then signal completion from another shell — the profile keeps the cookies for reuse:

# Terminal A (blocks):
omniscout browser login https://github.com/login --profile work

# Terminal B (after you log in):
omniscout browser login --done

# Reuse later:
omniscout browser navigate https://github.com/notifications --profile work

--success-pattern (URL regex) auto-resolves the login; --timeout-ms defaults to 5 minutes. For CAPTCHAs:

omniscout browser captcha --detect-only                    # just report
omniscout browser captcha --solver 2captcha                # none | 2captcha | capsolver | manual
export CAPTCHA_API_KEY=...                                 # or --api-key

navigate also accepts --auto-captcha to resolve challenges right after load.

Cleanup

omniscout browser close                # close the default session
omniscout browser close --all          # close everything

Agent tips

  • Always snapshot before acting; never reuse refs across navigations.
  • End every run with browser close --all so the next run starts clean.
  • Use --session to isolate parallel workflows.
  • Under --json, pipe snapshots through jq: omniscout browser snapshot | jq '.refs[] | select(.role == "button")'.

On this page