Browser
Deploy a Browser instance
BrowserInstance
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.
- Fastest start up time
- 1x compute cost
Start a browser instance
Python
TypeScript
Available actions
get_cdp_url
Get the Playwright CDP URL
Python
TypeScript
save_auth
Save the browser auth state
Python
TypeScript
authenticate
Authenticate the browser using a saved auth state
Python
TypeScript
screenshot
Take a base64 encoded image of the current desktop
Python
TypeScript
get_stream_url
Get the interactive stream URL
Python
TypeScript
computer
Perform computer actions with the mouse and keyboard
move_mouse
Move mouse cursor to specific coordinates
[x, y] coordinates to move to
List of modifier keys to hold during the action
Python
TypeScript
click_mouse
Perform 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
Python
TypeScript
drag_mouse
Click 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
Python
TypeScript
scroll
Scroll 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
Python
TypeScript
press_key
Press a key or combination of keys. Scrapybara supports keys defined by X keysyms. Common aliases are also supported:
alt
→Alt_L
ctrl
,control
→Control_L
meta
→Meta_L
super
→Super_L
shift
→Shift_L
enter
,return
→Return
List of keys to press
Time to hold keys in seconds
Python
TypeScript
type_text
Type text into the active window
Text to type
List of modifier keys to hold while typing
Python
TypeScript
wait
Wait for a specified duration
Time to wait in seconds
Python
TypeScript
take_screenshot
Take a screenshot of the desktop
Python
TypeScript
get_cursor_position
Get current mouse cursor coordinates
Python
TypeScript
stop
Stop the instance
Python
TypeScript
pause
Pause the instance
Python
TypeScript
resume
Resume the instance
Python
TypeScript
Compatible tools
ComputerTool
Screen resolution
By default, the Browser instance runs at 1024x768 resolution. You can specify a custom resolution when starting the instance: