Open Agent Loops
API Reference

BrowserElement

@open-agent-loops/core


Defined in: tools/builtin/builtin.types.ts:473

One interactive element exposed in a BrowserSnapshot.

Remarks

The model targets elements by their ref — a stable handle the backend assigns — rather than by CSS selector or pixel coordinate. This is the accessibility/DOM-snapshot flavor of browser control (as in Playwright), the better fit for a text-first agent than a screenshot/pixel flavor.

Properties

PropertyTypeDescriptionDefined in
namestringAccessible name / visible label of the element.tools/builtin/builtin.types.ts:479
refstringOpaque handle the model passes back to browser_click / browser_type.tools/builtin/builtin.types.ts:475
rolestringARIA role, e.g. button, link, textbox.tools/builtin/builtin.types.ts:477

On this page