Browser Use Glossary: The Words Behind Browser Agents

7 min read

Browser agents mix three worlds: language models, web pages and the protocols that drive Chrome. Each world brings its own words. This glossary gives each word one plain meaning, so the rest of the series reads fast.

Every term is tied to the open-source browser-use library at version 1.0.9, the current release on November 28, 2026. Where the 0.x versions worked differently, the entry says so.

Hand-drawn stack diagram: your task goes to the agent loop, which sends history to the LLM and gets back one Python cell; the loop runs the cell in a persistent Python REPL, which calls cdp() over a Unix socket to the browser-harness daemon, which holds one CDP websocket to Chrome, which renders the web page

The problem: one idea, five names

Read three browser agent repos and you will see "state", "observation", "snapshot" and "DOM tree" used for the same thing. You will also see "tool", "action" and "function" used for the same thing. The words drift because the field moved fast.

The fix is to pick one meaning per word and keep it. That is what the table below does.

Core terms

TermPlain meaningIn browser-use 1.0.9
Browser agentA program where a language model decides what to do next in a real browser, step by step, until a task is done.Agent(task, llm=..., browser=...)
HarnessThe code around the model. It shows the model the page, runs what the model asks for and feeds back the result.The agent loop plus browser-harness
StepOne model request and the work it triggers.One python cell per step
CellA block of Python the model writes. It runs in a REPL that keeps its variables between steps.python(code) tool
REPLRead, eval, print loop. A Python process that stays alive, so a variable set in step 2 is still there in step 7.repl/worker.py, a child process
ToolA function the model can call by name with typed arguments.python, plus your own @tools.action functions
ActionThe 0.x word for a tool such as click or input.0.13.14 had 24 to 27 of them; 1.0 replaced them with code
Output toolA tool that ends the run and carries the answer.finish(result=...) and finish_from_repl(expression=...)
max_stepsThe cap on model requests in one run.Default 100 (it was 500 in 0.x)
TimeoutThe wall clock budget for one run.Default 1700 seconds

Page terms

TermPlain meaningWhy an agent cares
DOMThe tree of elements the browser builds from HTML.The raw truth of the page, but huge.
Accessibility tree (AX tree)A second tree Chrome builds for screen readers. It keeps roles ("button", "link") and names ("Search").A compact list of things a human can act on.
Backend node idChrome's stable id for one DOM node during a page's life.How a click finds the right element. It expires after navigation.
Interactive elementAnything a user can click, type into or choose.What the agent needs to see first.
Element indexA small number given to each interactive element, like [13] searchbox "Search Wikipedia".Lets the model say "type into 13" instead of writing a selector.
HighlightingDrawing boxes or brackets on elements so a human (or a vision model) can see what the agent targets.1.0 draws orange corner brackets for one second and keeps them out of its own screenshots.
ScreenshotA picture of the viewport.Shows layout, canvas and overlays that the DOM hides.
Shadow rootA hidden sub-tree inside a web component. A "closed" one hides from page JavaScript.Selectors cannot see inside it. CDP can.
iframeA page inside a page. A cross-origin one is a separate security world.Page JavaScript in the parent cannot read it.

Protocol terms

TermPlain meaningIn browser-use 1.0.9
CDPChrome DevTools Protocol. JSON messages over a websocket that let a program drive Chrome.Used directly, through cdp_use
TargetOne thing CDP can attach to: a tab, an iframe, a worker.Target.getTargets lists them
SessionA CDP attachment to one target.Handled by the daemon
PlaywrightA browser automation library from Microsoft. Its Python client talks to a Node.js driver, which talks CDP to Chrome.Removed from the core in the 1.0 rewrite
DaemonA background process that holds the one CDP websocket and relays calls.browser-harness daemon.py, one per BU_NAME
HeadlessChrome running with no visible window.Local headless runs at 1440 x 900
Profile / user_data_dirThe folder where Chrome keeps cookies, storage and logins.Browser('chromium', user_data_dir=...)

Modes and models

TermPlain meaningIn browser-use 1.0.9
Default modeThe model writes Python and reads pages with js() and cdp().Vision on by default
Ultrafast modeA text view of the page built from the AX tree, with short ids.mode='ultrafast', bu.state(), bu.click(id), bu.type(id, text)
bu-4.0 / bu-fastBrowser Use's own hosted models on its gateway.Default model is bu-4.0
JudgeA second model that grades a finished run.Fields include success, failure_reason, prompt_injection_detected
CompactionSummarising old history so the prompt stays small.Kicks in at 75% of max_context_chars
Prompt cacheThe provider reuses an unchanged prompt prefix, so you pay less for it.Fixed for Claude on OpenRouter and Bedrock in 1.0.9

Safety terms

TermPlain meaningWhat the docs say
Prompt injectionText on a page that tries to give the model orders.The system prompt says page content is evidence, not instructions.
sensitive_dataSecrets the agent may type without the model seeing the value.The model sees <secret:name>. The README calls it "not a sandbox".
allowed_domainsA list of sites the browser may open."A guard for an aligned model, not a sandbox."
Bot wall / CAPTCHAA check that tries to tell humans from bots.The FAQ says no browser setup guarantees a pass.

How the terms fit together

flowchart LR
  T[Task] --> L[Agent loop]
  L -->|history| M[LLM]
  M -->|one Python cell| L
  L --> R[Persistent REPL]
  R -->|cdp call| D[browser-harness daemon]
  D -->|CDP websocket| C[Chrome]
  C --> P[Page: DOM, AX tree, pixels]
  R -->|text and screenshots| L
  L -->|finish| A[Answer]

The same terms in time order, for one step:

sequenceDiagram
  participant U as You
  participant A as Agent loop
  participant M as Model
  participant R as REPL
  participant C as Chrome
  U->>A: task
  A->>M: system prompt + task + history
  M->>A: python tool call (one cell)
  A->>R: run the cell
  R->>C: CDP commands over the websocket
  C-->>R: results, page state
  R-->>A: printed output + screenshot
  A->>M: next request, history grows
  M->>A: finish_from_repl(expression)
  A-->>U: final result

What the rest of the series covers

  1. This glossary.
  2. Why a language model cannot just use a website.
  3. How a browser agent sees a page.
  4. The agent loop, step by step.
  5. Tools, actions and your own custom tools.
  6. CDP vs Playwright under the hood.
  7. Sessions, profiles, logins and secrets.
  8. Reliability: shadow DOM, iframes, popups and bot walls.
  9. Speed and token cost.
  10. Benchmarks and how to read them.
  11. Production, plus a capstone agent.

Every code block in the series was run on November 28, 2026, against real pages with real headless Chromium. Most runs used a scripted stand-in for the model, so the browser side is real and repeatable. Part 4 explains exactly how, and which runs used a real model.

Sources