LLMs Technical Reviews

How are actions executed and how are elements targeted?

CDP / Playwright / OS-level input; selectors vs indexes vs coordinates; typing, scrolling, file upload, tabs.

Verdict

Most of these projects let the model name an element id and then send the input themselves. Stagehand and HyperAgent are the cleanest for single auditable CDP actions, Skyvern has the widest action catalogue, and agent-desktop and mobile-jev are the strictest about checking that an action actually landed.

Snapshot id, then CDP input. browser-use has a fixed catalogue including upload_file and switch_tab, checks occlusion before clicking, and runs up to five actions per reply, stopping at the first failure. Stagehand takes one {elementId, method, arguments} per inference. HyperAgent registers five default actions; scroll, back, forward, upload and drag are missing. Jev Ultrafast re-checks isConnected and elementFromPoint before clicking and scrolls a fixed 560 px. Ulka re-validates visibility, occlusion and label, then sends Input.dispatchMouseEvent or Input.insertText.

Playwright and DOM events. Skyvern defines about 30 action types. Its open-source SOLVE_CAPTCHA only waits 30 s for a human. jev-browser targets data-jev-id selectors and code-injects passwords the model never sees, but offers no uploads. Workflow Use replays recorded steps through selector fallbacks. dsh-browser uses no CDP: content-script el.click() and native value setters produce isTrusted: false events that some sites ignore. browser-harness exposes raw helpers such as click_at_xy and DOM.setFileInputFiles.

OS-level input. Cua accepts element tokens, pixels or browser refs and delivers input in the background (XSendEvent on Linux). agent-desktop has a 21-variant Action enum, uses AX actions by default and reads state back for up to 400 ms. typesafe-computer-use tries AXPress, then a Quartz pixel click. jev-use acts through AX references or CGEvent after re-checking the target’s label.

Outliers. mobile-jev re-observes the phone before every Mobilerun tap or swipe and reads typed text back. openjev-sglang does not apply: it executes no actions.

Pick: Stagehand or HyperAgent for single scripted actions you can log and replay. Pick: browser-use or Skyvern when the model needs tabs, uploads and many action types. Pick: agent-desktop or Cua for native apps where you must know the action landed.

Per-project answers

browser-use/browser-use

answered

Architecture. Actions are dispatched through the Tools (browser_use/tools/service.py) → Registry.execute_action() → event bus → handler chain. Tools.act() (browser_use/tools/service.py:2178-2236) receives an ActionModel (a Pydantic union discriminated by action name), extracts the action name and params, and calls registry.execute_action() under an asyncio.wait_for timeout (env BROWSER_USE_ACTION_TIMEOUT_S, default 180s). The registry maps action names to registered handler functions, which typically dispatch events on the browser session's event bus.

Element targeting (index-based). Most actions reference elements by a numeric index from the selector_map — the same indices shown in the DOM serialization. The handler looks up the EnhancedDOMTreeNode and resolves it to a CDP backend_node_id + frame_id. This avoids fragile XPath or CSS selectors. For models that support it (Claude Sonnet 4+, Opus 4+, Gemini 2.5 Pro), coordinate-based clicking is available via coordinate_x/coordinate_y in ClickElementAction (browser_use/tools/views.py:69-75). Enabled automatically at agent init (browser_use/agent/service.py:327-333).

Available action types (browser_use/tools/views.py): navigate (with new_tab option), click (by index or coordinates), input_text (with clear flag to append), scroll (direction + page fraction + optional element index), send_keys (keyboard shortcuts like Control+o), upload_file (index + file path), switch_tab / close_tab (4-char tab ID), search (Google/Bing/DuckDuckGo), search_page (regex/literal text search in page), find_elements (CSS selector), extract (LLM-based extraction from page markdown), screenshot (save to file), save_as_pdf, get_dropdown_options, done (terminate with result).

Execution flow. Agent.multi_act() (browser_use/agent/service.py:2728-2848) runs sequential actions from a single LLM response. It enforces two page-change guards: (1) static terminates_sequence=True on actions like navigate/search/go_back/switch; (2) runtime detection comparing pre/post-action URL and focused target ID. Any page change aborts remaining queued actions. A wait_between_actions delay (from BrowserProfile) is applied between steps. send_keys dispatches keyboard events via CDP. File upload uses CDP's input.dispatchFile or sets the file input value. Tab management uses CDP Target.attachToTarget/Target.detachFromTarget. Scroll is implemented via CDP JavaScript window.scrollBy() or element.scrollIntoView().

Multi-step actions per LLM call. Controlled by max_actions_per_step (default 5). The AgentOutput schema allows multiple actions per response. Each action is dispatched sequentially; if one errors, the remaining actions are still attempted (error is recorded, not fatal).

Editor's note. Correction: multi_act stops at the first failing action (tools/service.py ~L2809). Remaining actions are not run. The coordinate-click model check matches gemini-3-pro, not Gemini 2.5 Pro.

trycua/cua

answered

Actions execute through a layered system of MCP tools dispatched to OS-native code on each platform.

Tools & targeting. Actions like click, type_text, scroll, drag, move_cursor, hotkey, press_key are registered MCP tools (libs/cua-driver/rust/crates/cua-driver-contract/src/lib.rs:107-128). Targets can be specified by:

  • Pixel coordinates (x, y) in the window or desktop frame
  • Element token (element_token = "s00001234:42") — resolves to a cached accessible element from the last snapshot
  • Browser ref ("p<snapshot>:<index>") for browser DOM elements
  • PID + window_id for window-scoped actions
  • Desktop scope via {kind: "desktop", display_id: "primary"} The action_target.rs module normalizes the tagged-union ActionTarget into the legacy flat fields before dispatch (libs/cua-driver/rust/crates/cua-driver-core/src/action_target.rs:30-100).

Platform-specific delivery. Each platform has its own input implementation behind the cross-platform contract:

  • macOS: Uses Apple Accessibility (AX) API for most input. click performs AXAction on an element or synthesizes CGEvent mouse clicks posted to the target pid. type_text inserts text via AXSetAttribute(kAXSelectedText) for native Cocoa fields, falling back to CGEvent keystrokes for Chromium/Electron and terminals (libs/cua-driver/rust/crates/platform-macos/src/tools/click.rs:1-80, libs/cua-driver/rust/crates/platform-macos/src/tools/type_text.rs:1-80).
  • Linux X11: Uses XSendEvent for background pointer events (no focus steal). Keyboard input uses evdev uinput virtual devices (libs/cua-driver/rust/crates/platform-linux/src/input/mod.rs:1-53). AT-SPI for accessibility-backed actions.
  • Windows: Uses UIA TextPattern + FindAll for accessibility, shared CDP for JS exec.
  • Browser: CDP-based browser_click, browser_type, browser_pointer tools with session-scoped target/tab lifetimes (libs/cua-driver/rust/crates/cua-driver-core/src/browser/tools.rs:30-40).

Delivery modes. Actions have a delivery_mode of background (default, no activation of the target window) or foreground (accepts activation). Background delivery that would require activation is refused with WouldRequireActivation (libs/cua-driver/rust/crates/cua-driver-core/src/interactive_input.rs:38-46).

Special actions. set_value for direct value writes, invoke_menu for app menus (up to 16 menu items deep), drag with waypoint interpolation, and type_text_chars for per-character pacing. File upload for browsers uses browser_set_input_files (libs/cua-driver/rust/crates/cua-driver-core/src/browser/tools.rs:37).

Editor's note. Correction: on Linux X11, background pointer and keyboard events both go through XSendEvent (platform-linux/src/input/mod.rs). The evdev uinput device is used only for the MPX virtual-keyboard path, and XTest is deliberately avoided.

browserbase/stagehand

answered

Actions are never executed by the LLM directly — the LLM returns a structured decision (elementId, method, arguments, twoStep flag), and actService.ts executes it deterministically via CDP primitives. The twoStep flag enables two-phase actions (e.g., clicking to expand a non-<select> dropdown, then choosing the option).

From decision to execution: The LLM returns an ActInferenceSchema object with an elementId (like "0-18372"). normalizeActInferenceElement looks up the ID in the combinedXpathMap to get an XPath, then wraps it as xpath=/.... The takeDeterministicAction function calls performUnderstudyMethod (actHandlerUtils.ts), which resolves the XPath to a Locator object (via resolveLocatorWithHops for cross-iframe support) and dispatches to the appropriate method handler.

Method handlers are mapped in METHOD_HANDLER_MAP and include: click, doubleClick, fill, type, press (key), scrollTo, scrollIntoView, mouse.wheel, nextChunk/prevChunk (scroll by element height), selectOption, hover, dragAndDrop.

CDP-level execution: The Locator class (understudy/locator.ts) resolves the selector to an objectId inside an isolated world (Page.createIsolatedWorld), then uses CDP commands: DOM.scrollIntoViewIfNeeded, DOM.getBoxModel (to find the element's center coordinates), and Input.dispatchMouseEvent for clicks (with mouseMoved/mousePressed/mouseReleased events). Typing uses Input.insertText (efficient) or per-character Input.dispatchKeyEvent. Filling uses a JavaScript function injected via Runtime.callFunctionOn that sets the element's value; if the element needs IME/character-level input, it falls back to Input.insertText. File uploads construct File objects in-page via assignFilePayloadsToInputElement and assign them to <input type="file">. Scrolling uses Runtime.callFunctionOn with JavaScript that scrolls the element/window by its height.

Selectors: The LLM returns encoded element IDs, which are resolved to xpath=... selectors. The Locator class supports CSS selectors, XPath expressions, and >>-delimited iframe hops (via deepLocator.ts). Coordinates are never sent to the LLM — they are computed server-side from DOM.getBoxModel.

Tabs: page.goto, page.goBack, page.goForward use CDP Navigation.goto/Navigation.goBack. The BrowserContext manages pages as top-level CDP targets.

Skyvern-AI/skyvern

answered

Actions are executed through Playwright (async API) against the live browser page. The codebase defines ~30 action types (skyvern/webeye/actions/action_types.py:4-37), including click, input_text, select_option, upload_file, scroll, keypress, move, drag, goto_url, go_back, go_forward, close_page, new_tab, switch_tab, solve_captcha, wait, hover, execute_js, reload_page, and the decisive actions complete/terminate.

Element targeting uses three strategies, ordered by preference:

  1. Skyvern element_id — The model names elements by their injected unique_id attribute. The action handler resolves this to a CSS selector (skyvern/webeye/scraper/scraper.py:275, id_to_css_dict[element_id] = f"[{SKYVERN_ID_ATTR}='{element_id}']") and uses Playwright's frame.locator() to find it. This is the primary targeting method.
  2. Coordinate-based — click actions can include x/y pixel coordinates (e.g. for image maps). The handler uses page.mouse.click(x, y, button) directly (handler.py:7473-7480).
  3. XPath fallback — Each stored action can carry an xpath field derived from skyelement data (actions.py:291-298).

Click execution is the most complex handler (handler.py:7428-7524+): it resolves the element by ID, checks disabled state (retargeting to a child if the parent is inert), validates desired state for toggle controls, scrolls into view, optionally moves the cursor via events, then calls locator.click() or page.mouse.click() with support for left/right button, double-click, and triple-click (via repeat).

Other action mechanics: INPUT_TEXT fills by clearing then typing via Playwright's fill() or type(), with TOTP code injection support. SELECT_OPTION uses locator.select_option() by label/value/index. UPLOAD_FILE uses Playwright's file chooser. SCROLL uses page.evaluate('window.scrollTo(...)'). CLOSE_PAGE closes the current Playwright page; NEW_TAB/SWITCH_TAB manage page objects. EXECUTE_JS runs arbitrary JavaScript. SOLVE_CAPTCHA routes through the AGENT_FUNCTION seam (the OSS base returns False; cloud deployments solve via vendor handlers). The Task V3 loop (forge/taskv3/tools.py) offers raw-browser tools — click, type, select_option, press_key, file_upload, navigate, scroll, wait, solve_captcha, reload_page, and observe — each as a ToolSpec the model calls via tool_calls.

browser-use/jev-ultrafast

answered

Actions are executed entirely through CDP input dispatch, not Playwright or OS-level automation. All targeting uses integer node IDs assigned by the DOM reader (snapshot.js:4-6), never model-generated selectors, coordinates, or JavaScript (README:105-106). The Browser.act() method first checks freshness via fresh() (browser.py:100-102), then delegates to browser_operation() (browser.py:135-186).

Before any input, the executor revalidates the element via JavaScript: it checks isConnected, disabled state, aria-disabled, inert, visibility and occlusion via elementFromPoint, and read-only for fillable fields (browser.py:144-160). Geometry is resolved at execution time, not cached from observation. If validation fails, StalePage is raised and no CDP input fires.

  • click: Input.dispatchMouseEvent with mousePressed/mouseReleased at the element's bounding-box center (browser.py:167-168).
  • fill: same mouse events to focus, then Ctrl+A (Cmd on macOS) via Input.dispatchKeyEvent with selectAll, followed by Input.insertText with the text-helper value (browser.py:169-185).
  • select: synchronous DOM mutation — sets e.value, dispatches input and change events (browser.py:153-158).
  • scroll: Input.dispatchMouseEvent with mouseWheel at a fixed viewport center, sending a delta of ±560 pixels (browser.py:138-139).
  • wait: plain time.sleep(0.1) (browser.py:103-104).
  • DONE/BLOCKED: no browser action; updates status and returns (agent.py:93-100).

No file-upload or new-tab actions are implemented — acknowledged as outside the MVP (README:126).

browser-use/browser-harness

answered

Actions are executed exclusively through CDP (Chrome DevTools Protocol) over a persistent WebSocket connection. There is no Playwright or OS-level input automation.

  • Architecture: The daemon in daemon.py holds a single CDP WebSocket connection (_PatientCDPClient for local Chrome, standard CDPClient for remote) and an IPC relay over Unix socket (or TCP loopback on Windows). All helper functions in helpers.py communicate with the daemon via _send() which serializes JSON requests over the IPC socket, and the daemon relays them to CDP.

  • Element targeting: Elements are targeted primarily by viewport coordinates via click_at_xy(x, y) (helpers.py:174-194). The SKILL.md-recommended workflow is: accessibility node → DOM.getBoxModel to get bounding box → average corners for center coordinates → click_at_xy. Raw CSS selectors are used for filling inputs (fill_input at line 208), waiting (wait_for_element at line 496), and file uploads (upload_file at line 621). upload_file uses DOM.querySelector + DOM.setFileInputFiles. There are no zero-indexed element indexes or set-of-marks identifiers.

  • Typing: type_text() (helpers.py:196) uses Input.insertText which inserts text directly. fill_input() (helpers.py:208) is a more robust alternative that focuses the element, clears with select-all (Ctrl/Cmd+A via raw CDP key events), types per-character via press_key(), then fires synthetic input + change DOM events to wake framework listeners.

  • Scrolling: CDP Input.dispatchMouseEvent type mouseWheel via scroll() (helpers.py:326-327).

  • Key presses: press_key() (helpers.py:295-324) dispatches keyDown, char, keyUp CDP events for each key, with physical keyboard codes for US layout.

  • Tabs: Managed via CDP Target.* methods. new_tab() creates via Target.createTarget, switch_tab() attaches via Target.attachToTarget, close_tab() via Target.closeTarget. The daemon tracks the active session ID.

  • MCP layer: In mcp_server.py, each browser action (click, type, scroll, goto, screenshot, etc.) is exposed as a named MCP tool over stdio, returning JSON.

browser-use/workflow-use

answered

Actions execute through two parallel systems. Path 1 — Deterministic Controller: WorkflowController (controller/service.py) registers custom Playwright-based actions via browser-use's @self.registry.action decorator: navigation (page.goto), click (locator via get_best_element_handle which tries multiple stability-ranked CSS selectors, then XPath), input (locator.fill), select_change (locator.select_option by label), key_press (locator.press), and scroll (page.evaluate JavaScript). Elements are targeted by CSS selector with 10+ fallback strategies generated by generate_stable_selectors — attribute-based ([placeholder], [aria-label], [name]), tag+class, stripping dynamic IDs/state classes, and elementTag:has-text() (controller/utils.py:51–101). XPath with stable alternatives is tried as last resort (utils.py:33–48).

Path 2 — Semantic Executor: SemanticWorkflowExecutor.execute_step (semantic_executor.py:1863) dispatches to typed step handlers (NavigationStep → page.goto + wait for input, button, form, ClickStep → multi-strategy element finder via ElementFinder.find_element_with_strategies trying text_exact, role_text, aria_label, placeholder, title, alt_text, text_fuzzy, and XPath via JavaScript document.evaluate), InputStep → element.fill, SelectChangeStep → element.select_option, KeyPressStep → CDP dispatchKeyEvent. For clicking, there is a direct text-based JavaScript click method (_click_element_by_text_direct) that searches all visible interactive elements by text content with 4-priority matching (exact → word → contains → fuzzy). File uploads and tab management are NOT implemented in this workflow system — the WorkflowController explicitly disables the browser-use actions for switch_tab, open_tab, close_tab, drag_drop, and get_sheet_contents (controller/service.py:26–52). Calendars, dropdowns, and booking widgets have specialised extraction in the JavaScript component (semantic_extractor JS, lines 259–424).

lahfir/agent-desktop

answered

Actions are dispatched through a platform-abstracted trait hierarchy — ActionOps.execute_action() receives a NativeHandle (resolved via resolve_element_strict) and an ActionRequest. The macOS adapter implements this via the accessibility API's AXAction/AXUIElementPerformAction, plus OS-level input synthesis for physical actions (mouse clicks via CFArray of CGPoint, keyboard via CX system APIs, clipboard via Cocoa). There is no CDP, Playwright, or web driver.

Elements are targeted by snapshot-qualified refs like @s8f3k2p9:e1. The flow:

  1. RefStore loads the snapshot's RefMap from disk (refs_store.rs).
  2. A RefEntry (pid, role, bounds hash, path, source surface, stable text identity) is looked up.
  3. resolve_element_strict() re-identifies the element on the live platform: matches pid, role, path/source surface, stable text identity, and bounds hash. Returns STALE_REF on 0 matches, AMBIGUOUS_TARGET on 2+ (adapter/observation.rs:79-85).
  4. A live actionability preflight checks visibility, stability (bounds polling until stable), enabled state, and hit-test (ref_action.rs:225-268).
  5. For stateful actions, execute_verified_action (post_action.rs:7-113) runs readback verification: re-reads the element's LiveElement state after execution and checks the postcondition, with up to 400ms of settle time.

Actions: Click, DoubleClick, RightClick, TripleClick, SetValue, SetFocus, Expand, Collapse, Select, Toggle, Check, Uncheck, Scroll, ScrollTo, PressKey, KeyDown, KeyUp, TypeText, Clear, Hover, Drag (27 variants). Batch mode deserializes JSON arrays into the same typed Commands enum and runs the same dispatch path.

Editor's note. Correction: the Action enum has 21 variants, not 27, and physical input is synthesised with CGEvent (only when --headed); the default path is AX actions such as AXPress. Strict resolution with STALE_REF/AMBIGUOUS_TARGET lives in crates/macos/src/tree/resolve.rs, not in the core trait default.

hyperbrowserai/HyperAgent

answered

Actions are executed CDP-first, falling back to Playwright when CDP is unavailable. The central dispatch is performAction() (src/agent/actions/shared/perform-action.ts:20). When ctx.cdpActions is true and a backendNodeMap exists, it uses CDP: resolveElement() (src/cdp/element-resolver.ts:35) resolves an encoded ID (frameIndex-backendNodeId) to a {session, frameId, backendNodeId, objectId} via DOM.resolveNode, with XPath-based recovery when backendNodeIds go stale (calling DOM.describeNode after evaluating an XPath in the correct execution context). The resolved element is then dispatched by dispatchCDPAction() (src/cdp/interactions.ts) which uses CDP Input.dispatchMouseEvent / Input.dispatchKeyEvent / Input.dispatchDragEvent for clicks, typing, and fills, and JavaScript evaluation for scroll actions.

CDP methods (defined in src/cdp/interactions.ts:17-31) include: click, hover, fill, type, press, check, uncheck, selectOptionFromDropdown, scrollToElement, scrollToPercentage, nextChunk, prevChunk. When CDP is unavailable, the system builds a Playwright locator via getElementLocator() (src/agent/shared/element-locator.ts) using XPaths from xpathMap, resolving frame indices to Playwright frames, then calls executePlaywrightMethod() (src/agent/shared/execute-playwright-method.ts) with a 3500ms click timeout.

Element targeting uses the encoded ID scheme frameIndex-backendNodeId. The actElement action schema requires elementId, method (one of 12 CDP methods), and arguments (string array) (src/agent/actions/act-element.ts:12-36). Scrolling also has a specialized ScrollAction (src/agent/actions/scroll.ts:4) for up/down/left/right by viewport height via window.scrollBy. File upload, tab management, and page navigation actions (goToUrl, pageBack, pageForward, refreshPage) are defined as separate action definitions (src/agent/actions/index.ts:29-43). Tab-following is handled by setupHyperPage() which maintains a page stack — when the active page opens a new tab, the stack auto-pushes; when a tab closes it auto-splices (src/agent/index.ts:1482-1558).

Editor's note. Correction: there is no Input.dispatchDragEvent and no file-upload action in src/. The default action list is goToUrl, refreshPage, actElement, extract and wait (plus pdf with GEMINI_API_KEY); ScrollAction, pageBack and pageForward exist as files but are not registered. Playwright is not a runtime fallback when CDP fails; performAction picks one path up front.

awlevin/typesafe-computer-use

answered

Actions are dispatched through actions.py:perform(), which routes by the classifier's kind Choice into deterministic handlers. Elements are targeted by index into the item list, not by CSS selectors or raw coordinates — the index maps back to the item's pixel center or accessibility element ref.

MacOS native: macos.py posts real Quartz events through CGEventPost to kCGHIDEventTap. A click (click_at) moves the pointer then sends mouse down/up events. Keys (press) use CGEventCreateKeyboardEvent, supporting Command-prefixed keys via kCGEventFlagMaskCommand. Typing emits one unicode keystroke per character. Scrolling parks the pointer at the window center first. (macos.py:74–120)

Accessibility-first clicks: When an item came from the AX tree, click_item first tries ax_press(ref) — this sends AXPress to the control element itself, landing even if covered by a sticky header. If that fails or there's no AX ref, it falls back to a pixel-coordinate mouse click. If the item sits under a popup (tracked in screen.covered), the popup's close button (or Escape) is pressed first. (actions.py:52–70, 73–86)

Text input: fill_field first tries ax_set_value on the focused element — one call, no keystrokes. It verifies by reading the value back: if it ends with the typed text, done. Otherwise it clear_field (Cmd-A, Delete) then types character by character. After typing, a TypeSafe Noul check (verify_typed) scores whether the field holds a sensible value; below 0.5, the original value is restored via AX (restore_field). (actions.py:105–136)

Browser (CDP) path: The browser backend uses real Input.dispatchMouseEvent / Input.insertText CDP events. Elements are targeted by their data-tscu="<index>" attribute, set by the perception JS. A click uses scrollIntoView first if off-screen, then dispatches mouse move/press/release. Typing focuses the element, then calls Input.insertText. (browser/act.py:43–86)

Other actions: use_browser activates the named browser via AppleScript (tell app to activate), then opens a URL from the SITES catalog or from the writer. scroll_down/scroll_up set lines via Quartz scroll wheel events, or pyautogui.scroll in OSWorld. go_back sends Cmd-[ (or Alt-Left on Windows). wait sleeps for 3 seconds, plus the step's own settle delay. (actions.py:138–234)

The OSWorld adapter translates all inputs into pyautogui code strings, accumulated and sent as one step's action list. Clicks become pyautogui.click(x, y), keys become pyautogui.press(...). The text you type reaches the VM only through repr(), never as raw code. (osworld/desktop.py:160–180)

omdsh-dev/dsh-browser

answered

Actions execute in the user real browser via the content script (not CDP or Playwright). The bridge sends a tool.call frame over WebSocket (server.ts:226-233); background routeToolCall() (background/index.ts:1058-1199) dispatches via chrome.tabs.sendMessage() (background/tools.ts:157-164). runAction() (actions.ts:168-196) routes to handler functions. Elements are targeted by stable inventory index via elementOrThrow() (actions.ts:126-132) calling ids.elementByIndex() - no CSS selectors or coordinates. clickAction() (actions.ts:226-291) calls scrollIntoView then el.click() with MutationObserver page-settle. Controlled same-frame links dispatch a MouseEvent then set location.href; native activation is preserved when the link has noreferrer/ping attributes (actions.ts:244-254). typeAction() (actions.ts:365-381) uses a native-value setter via Object.getOwnPropertyDescriptor (actions.ts:146-158) for React/Vue inputs, dispatching input/change events. ContentEditable hosts use execCommand(insertText) (actions.ts:338-363) so Lexical/ProseMirror process input. pressAction() sends keydown/keyup events (actions.ts:383-394). scrollAction() uses window.scrollTo/scrollBy (actions.ts:396-417). Tab-level operations (navigate, back, forward, reload, open/close tabs) use chrome.tabs APIs (background/tools.ts:217-241, 864-974) - the only path for protected DOM pages. All actions settle with a MutationObserver-based DOM-quiet detector (actions.ts:53-120) with configurable policies. Actions returning page state include a delta snapshot (actions.ts:216-224).

droidrun/mobile-jev

answered

Actions are executed via the Mobilerun REST API — no CDP, Playwright, or OS-level input. The MobilerunDevice.act() method (device.mjs:269-376) dispatches typed actions:

  • tap-element: Resolves elementId to its center coordinates from the observation's bounds and sends POST /tap with {x, y} (device.mjs:298-307). Requires the original observation for staleness checking.
  • tap: Raw coordinate tap POST /tap (device.mjs:294-296).
  • swipe: POST /swipe with startX/Y, endX/Y, duration (default 300ms). If a regionId is provided, gestures are re-projected to current bounds (device.mjs:320-336) so scrolling stays within the right region even after UI layout changes.
  • type: POST /keyboard with {text, clear, completionMode} (device.mjs:338-353). Text comes solely from goal spans via textCandidates() (text.mjs:2-19) — Jev selects a span, code copies it. The model never generates arbitrary prose. The completion mode is "accepted" (local polling verification) by default, or "committed" (server waits) for passwords/appends.
  • clear: DELETE /keyboard (device.mjs:354-358).
  • key: PUT /keyboard with key codes from the KEYS map (device.mjs:359-364): back (4), tab (61), enter (66), delete (67), forward_delete (112).
  • global: System navigation (POST /global) with action codes: back=1, home=2, recent=3 (device.mjs:5-6, 365-370).
  • open-app: PUT /apps/:packageName to launch an installed app directly via the API (device.mjs:272-279). Requires prior listApps() discovery.

Element targeting works through the index map built in buildQuestions() (policy.mjs:67-82). Each element ID maps to a string index; the model selects by index, then policy.mjs:237-258 resolves the Jev choice back to the actual action object with the element ID. Direct coordinate actions ({type: "tap", x, y}) are also available for debugging via the CLI.

Typing uses input verification: after accepted completion, the code polls the screen with confirmInput() (input-verification.mjs:46-65) until the field shows the exact text, the field identity is unchanged, and the field isn't a password field. If verification times out, the run stops with input_unverified — it never retypes blindly.

File upload: Not implemented. Tabs: The tab key (code 61) is the only supported keyboard navigation key. There is no browser tab management — this is a mobile phone, not a web browser.

jkudish/jev-browser

answered

Actions are executed through Playwright on a real headless Chromium browser. The browser is launched inside navigate() (src/navigate.ts:665), and every action runs against the live page via Playwright locators built from data-jev-id CSS attribute selectors.

Element targeting uses CSS attribute selectors ([data-jev-id="j1"]) created by selectorFor() (src/lib.ts:164-166). Elements are stamped with data-jev-id during DOM extraction and resolved to Playwright locators. There are no screenshot-based element indexes or set-of-marks coordinates — targeting is purely DOM-driven.

Action dispatch happens in the step loop (src/navigate.ts:868-1012):

  • click — page.click(selector) with a timed timeout (src/navigate.ts:1010)
  • type — page.fill(selector, text) without pressing Enter; the typing generator (a small LLM via the Vercel AI SDK) produces the text first (src/navigate.ts:903). No keyboard simulation is used for search fields.
  • search — page.fill() then page.press("Enter") in one step (src/navigate.ts:932-933)
  • submit — either page.click() on the submit button, or page.press("Enter") on a single-line text field (src/navigate.ts:938-944)
  • select — page.selectOption(selector, { index }) by live DOM index, not by label, so redacted labels never become the selection key (src/navigate.ts:964). A second Jev call picks the option.
  • scroll — window.scrollBy() at 80% of viewport height (src/navigate.ts:878-879)
  • back — page.goBack() (src/navigate.ts:874)
  • fill_password — the password value is injected through the native value setter (Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set) with input/change events, all within a single JS task to prevent interleaving (src/navigate.ts:981-994). The value never reaches the model.

Tabs: when a click opens a new tab, the context-level page event adopts the new page for subsequent steps (src/navigate.ts:1020-1024). File uploads are never offered (src/navigate.ts:92 in buildActionSpace skips file inputs). Typing is separate from Jev — Jev returns only decisions; text generation uses a configurable small model (OpenAI/OpenRouter/Anthropic/Google) or falls back to a keyword heuristic for search fields.

savka777/jev-use

answered

Actions are executed through a closed vocabulary of DesktopAction types (Desktop.swift:13-30) and dispatched in Desktop.perform() (Desktop.swift:1089-1326). The action types are: application — opens/switches to an app via NSWorkspace.shared.openApplication(); quit — terminates a running app via NSRunningApplication.terminate(); folder — opens a Finder folder; website — opens a URL in a specific browser; press — performs an Accessibility press action on an AXUIElement (AXUIElementPerformAction); select — sets kAXSelectedAttribute on a row/cell (Desktop.swift:1036-1046); clickAt — synthesises a mouse click at the element's centre point using CGEvent posted via system tap (Desktop.swift:1051-1064); focus — sets kAXFocusedAttribute, falling back to a centre click if Accessibility focus fails (Desktop.swift:1067-1080); key — posts keyboard events via CGEvent (Desktop.swift:1223-1228); scroll — posts scroll wheel events (Desktop.swift:1229-1230); type — enters text by setting kAXSelectedTextAttribute or by posting per-character keyboard Unicode events (Desktop.swift:1231-1269); position — sets window position/size; arrange — tiles/columns/cascades all windows with arithmetic layout (Desktop.swift:1278-1323). Element targeting is by Accessibility element reference (AXUIElement), not by selector or coordinate index. The DesktopSnapshot maps candidate IDs to DesktopAction values that contain the actual AXUIElement pointer (Desktop.swift:361-362). Before acting, the code verifies the target element still exists and its label matches (Desktop.swift:1160-1162). Opening a website uses NSWorkspace.shared.open() which delegates to the OS, not CDP or Playwright.

razaanstha/ulka

answered

All actions execute through Chrome's DevTools Protocol (CDP) — not Playwright, OS-level input, or Selenium. The BrowserExecutor class (executor.ts:13-125) receives a PageSnapshot, an AgentDecision (operation + target), and optional text, then dispatches the appropriate CDP commands. Element targeting: elements are identified by their DOM nodeId (an auto-incrementing integer stored in a page-level WeakMap/Map called __ulkaAgent.nodes); these IDs survive page mutations within a session. Before execution, the FreshnessValidator.validateTarget() method (freshness.ts:15-29) re-checks the element — verifying it is still connected, visible, enabled, not occluded, and that its role/label/href match — and returns a live {x, y} click point from interactionPoint(). If any check fails, a StaleDecisionError is thrown. Clicking and right-clicking: Input.dispatchMouseEvent with mousePressed/mouseReleased and the resolved coordinates (executor.ts:54-58,86-89). Typing: for native date/time inputs, value is set directly via element.value = ... plus input/change events (executor.ts:101-103). For all other text fields, the content is selected (select() or Range selection) and then Input.insertText inserts the full value atomically (executor.ts:105-121). Keyboard actions (ArrowDown, ArrowUp, Enter, Escape): the element is focused first, then Input.dispatchKeyEvent with the correct windowsVirtualKeyCode and key string, including Enter's \r character event for native form submission (executor.ts:65-76). Scrolling: Input.dispatchMouseEvent with mouseWheel and a deltaY value of ±420 or ±560 (executor.ts:38-48,62-63). If the snapshot has a scrollTarget, the scroll container is validated live. Page navigation: GO_BACK/GO_FORWARD use Page.getNavigationHistory + Page.navigateToHistoryEntry (executor.ts:32-36). RELOAD uses Page.reload (executor.ts:31). Tabs are managed via the Chrome extension API (NativeTabs, native-tabs.ts): open (chrome.tabs.create), switch (chrome.tabs.update), close (chrome.tabs.remove). The TabController interface at executor.ts:7-11 is implemented in background.ts:286-303 with background-mode safety checks. Downloads are handled through Chrome's downloads API (read-only listing with downloads.ts). No file upload mechanism was found beyond native date typing.

ekzhang/openjev-sglang

not applicable

OpenJev executes no actions on any UI or system. It takes no CDP commands, no Playwright calls, and no OS-level input events. The only "actions" are HTTP POST requests to SGLang's /generate endpoint, sending tokenized prompts with max_new_tokens=1 and reading back token-level logprobs. There is no browser element targeting (no selectors, no coordinates, no accessibility-label-based location), no typing, scrolling, file upload, or tab management. If a request disconnects, the server cancels pending sibling SGLang calls and attempts to abort them via POST /abort_request, but this is connection cleanup, not a computer-use action.

← How is the page represented to the model? · How is the agent loop / planning implemented? →