The BrowserInstance is a lightweight Chromium instance that supports interactive streaming, computer actions, Playwright CDP control, and saving/loading auth states. We recommend using this instance type if your task is constrained to the browser.
Get the Playwright CDP URL
Save the browser auth state
Authenticate the browser using a saved auth state
Take a base64 encoded image of the current desktop
Get the interactive stream URL
Perform computer actions with the mouse and keyboard
move_mouseMove mouse cursor to specific coordinates
[x, y] coordinates to move to
List of modifier keys to hold during the action
click_mousePerform a mouse click at current position or specified coordinates
Mouse button to click (“left”, “right”, “middle”, “back”, “forward”)
Type of click action (“down”, “up”, “click”)
[x, y] coordinates to click at
Number of clicks
List of modifier keys to hold during the action
drag_mouseClick and drag from current position to specified coordinates
List of [x, y] coordinate pairs defining the drag path
List of modifier keys to hold during the action
scrollScroll horizontally and/or vertically
[x, y] coordinates to scroll at
Horizontal scroll amount
Vertical scroll amount
List of modifier keys to hold during the action
press_keyPress a key or combination of keys. Scrapybara supports keys defined by X keysyms. Common aliases are also supported:
alt → Alt_Lctrl, control → Control_Lmeta → Meta_Lsuper → Super_Lshift → Shift_Lenter, return → ReturnList of keys to press
Time to hold keys in seconds
type_textType text into the active window
Text to type
List of modifier keys to hold while typing
waitWait for a specified duration
Time to wait in seconds
take_screenshotTake a screenshot of the desktop
get_cursor_positionGet current mouse cursor coordinates
stopStop the instance
pausePause the instance
resumeResume the instance
ComputerToolBy default, the Browser instance runs at 1024x768 resolution. You can specify a custom resolution when starting the instance: