library/webdriver-bidi
v0.1.0 SignedDrive a local browser over WebDriver BiDi — capability-gated, loopback-only
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
Tools · 10
act:tools interface — expand a tool for its input schema.
navigate Navigate the current browsing context to a URL.
Navigate the current browsing context to a URL.
Parameter Type Description url* string Absolute URL to load. wait string | null Readiness to wait for: none | interactive | complete. Default complete. Returns content.
context_list List open browsing contexts (tabs/windows).
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.
Create a new browsing context and make it current for this session.
Parameter Type Description type string | null Context type: tab | window. Default tab. Returns content.
context_close Close a browsing context. Defaults to the current one.
Close a browsing context. Defaults to the current one.
Parameter Type Description context string | null Context id to close. Defaults to the session's current context. Returns content.
screenshot Capture a PNG screenshot of the current browsing context.
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.
Evaluate a JavaScript expression in the current page and return its value.
Parameter Type Description expression* string JavaScript expression to evaluate. await_promise boolean | null Await 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.
Extract visible text from the page, or from one element by CSS selector.
Parameter Type Description selector string | null CSS selector. Defaults to the whole document body. Returns content.
click Click the element matching a CSS selector. Requires browser:input and browser:script.
Click the element matching a CSS selector. Requires browser:input and browser:script.
Parameter Type Description selector* string CSS 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.
Focus the element matching a CSS selector and type text into it. Requires browser:input and browser:script.
Parameter Type Description text* string Text to type. selector* string CSS 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.
Drain buffered console and log entries captured since the last call. Reports how many entries were dropped to stay within the buffer bound.
Parameter Type Description max integer | null Maximum entries to return. Defaults to all buffered. Returns content.
Readme
No README provided.