Browserless

Learn how to use Browserless with Composio

Overview

Enum

BROWSERLESS

Description

Browserless is a service that provides headless browser automation, allowing users to run automations on their own sites with browser infrastructure.

Authentication Details

api_token
stringRequired

Actions

This tool allows downloading files that chrome has downloaded during the execution of puppeteer code. it sets up a blank page, creates a fresh download directory, injects the provided code, and executes it. once the script finishes, any downloaded files from chromium are returned with the appropriate content-type header.

Action Parameters

code
stringRequired
context
object

Action Response

data
object
error
successful
boolean

A tool that allows executing custom puppeteer scripts via http requests. this endpoint enables users to run browser automation tasks without managing their own infrastructure.

Action Parameters

code
stringRequired
context
object

Action Response

data
object
error
successful
boolean
type
string

This tool fetches the complete html content of a webpage using browserless’s content api. it’s designed to retrieve the full html contents of any website, including dynamically generated content.

Action Parameters

best_attempt
boolean
goto_options
object
reject_request_pattern
array
reject_resource_types
array
url
stringRequired
wait_for_event
object
wait_for_selector
object
wait_for_timeout
integer

Action Response

data
string
error
successful
boolean

This tool generates a pdf from a specified webpage using browserless’s pdf generation api. it allows specifying the url of the webpage along with parameters such as format, filename, and waituntil options to control the pdf generation process.

Action Parameters

addScriptTag
array
addStyleTag
array
bestAttempt
boolean
gotoOptions
object
html
string
options
object
rejectRequestPattern
array
rejectResourceTypes
array
url
string
waitForSelector
object

Action Response

data
object
error
successful
boolean

A tool to extract structured content from a webpage by specifying css selectors. the tool navigates to the specified url, waits for the page to load (including parsing and executing javascript), and returns the selected elements in a structured json format.

Action Parameters

elements
arrayRequired
gotoOptions
object
url
stringRequired
waitForEvent
object
waitForFunction
object
waitForSelector
object
waitForTimeout
integer

Action Response

data
array
error
successful
boolean

A tool that captures a screenshot of a webpage using browserless’s screenshot api. the tool takes a url and returns either a png or jpeg image. it includes options for full page capture, image type, quality, and clipping coordinates.

Action Parameters

clip_height
integer
clip_width
integer
clip_x
integer
clip_y
integer
full_page
booleanDefaults to True
image_type
stringDefaults to png
omit_background
boolean
quality
integerDefaults to 75
url
stringRequired

Action Response

data
object
error
successful
boolean

This tool provides access to content from websites that implement bot protection mechanisms. it is designed to bypass various types of protection (such as captcha and bot detections) and return the html content of the protected webpage, with optional customization through parameters like waitfor, timeout, and stealth mode.

Action Parameters

browserWSEndpoint
boolean
content
booleanDefaults to True
cookies
boolean
screenshot
boolean
ttl
integerDefaults to 30000
url
stringRequired
waitForEvent
object
waitForFunction
object
waitForSelector
object

Action Response

data
object
error
successful
boolean