actpkg.dev
Components

library/webdriver-bidi

v0.1.0 Signed

Drive a local browser over WebDriver BiDi — capability-gated, loopback-only

by @library updated 2026-08-13 645 KB 0

Install

$ act pull actpkg.dev/library/webdriver-bidi

Capabilities

Moderate host access

Requests: Scoped capability · Raw sockets (scoped).

  • browser:input Scoped capability

    Dispatch synthetic input events (click, type).

  • browser:navigate Scoped capability

    Drive the browser to a URL.

  • browser:read Scoped capability

    Read page state (screenshot, text extraction, console log).

  • browser:script Scoped capability

    Evaluate arbitrary JavaScript in the page.

  • wasi:sockets Raw sockets (scoped)

    127.0.0.1:9222,9223,4444,4445, ::1:9222,9223,4444,4445

Risk Low Medium High

Tools · 10

act:tools interface — expand a tool for its input schema.

  • navigate

    Navigate the current browsing context to a URL.

    ParameterTypeDescription
    url*stringAbsolute URL to load.
    waitstring | nullReadiness to wait for: none | interactive | complete. Default complete.

    Returns content.

  • context_list

    List open browsing contexts (tabs/windows).

    No input parameters.

    Returns content.

  • context_create

    Create a new browsing context and make it current for this session.

    ParameterTypeDescription
    typestring | nullContext type: tab | window. Default tab.

    Returns content.

  • context_close

    Close a browsing context. Defaults to the current one.

    ParameterTypeDescription
    contextstring | nullContext id to close. Defaults to the session's current context.

    Returns content.

  • screenshot

    Capture a PNG screenshot of the current browsing context.

    No input parameters.

    Returns content.

  • evaluate

    Evaluate a JavaScript expression in the current page and return its value.

    ParameterTypeDescription
    expression*stringJavaScript expression to evaluate.
    await_promiseboolean | nullAwait the result if it is a promise. Default true.

    Returns content.

  • get_text

    Extract visible text from the page, or from one element by CSS selector.

    ParameterTypeDescription
    selectorstring | nullCSS selector. Defaults to the whole document body.

    Returns content.

  • click

    Click the element matching a CSS selector. Requires browser:input and browser:script.

    ParameterTypeDescription
    selector*stringCSS selector of the element to click.

    Returns content.

  • type_text

    Focus the element matching a CSS selector and type text into it. Requires browser:input and browser:script.

    ParameterTypeDescription
    text*stringText to type.
    selector*stringCSS selector of the element to type into.

    Returns content.

  • console_drain

    Drain buffered console and log entries captured since the last call. Reports how many entries were dropped to stay within the buffer bound.

    ParameterTypeDescription
    maxinteger | nullMaximum entries to return. Defaults to all buffered.

    Returns content.

Readme

No README provided.