Send a command to a browser

Execute a browser action (analyze, navigate, click, type, press_key, screenshot, scroll, wait, list_tabs, open_tab, switch_tab, close_tab, read_page).

post/browsers/{browserId}/command

Request

  • Base URL: https://oyabrowser.com
  • URL: https://oyabrowser.com/browsers/{browserId}/command
  • Auth: HTTP bearer

Path parameters

browserIdstring required

Browser session ID (from GET /browsers)

Request body

action'analyze' | 'navigate' | 'click' | 'type' | 'press_key' | 'screenshot' | 'scroll' | 'wait' | 'read_page' | 'list_tabs' | 'open_tab' | 'switch_tab' | 'close_tab' required

The browser action to execute. Each action uses only specific params (see examples).

Response

Command result

okboolean

Whether the command succeeded

codestring

For ok:false, a stable reason: command_failed for a refusal the page answered, or one named per action.

errorstring nullable

Error message if ok is false

Changes

No recorded changes to this operation across all 1 revision of this API.