Skip to main content
Browserless logo
  • Category: web scraping & browser
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 7
  • Triggers: 0
  • Slug: BROWSERLESS
  • Version: 20261101_00

Tools

Slug: BROWSERLESS_DOWNLOAD_FILERuns a Puppeteer script through Browserless’s download API and returns the response body as base64, with a content type and filename.

Input Parameters

string
required
The Puppeteer script to execute for downloading the file. This should be a valid JavaScript code that triggers a file download.
object
Additional context data to be passed to the script

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BROWSERLESS_EXECUTE_CUSTOM_FUNCTIONA tool that allows executing custom Puppeteer scripts via HTTP requests. This endpoint enables users to run browser automation tasks without managing their own infrastructure.

Input Parameters

string
required
The Puppeteer function code to execute. Must be a valid ESM module with a default export function.
object
Optional context object to pass to the function. Supports any JSON-serializable nested data.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BROWSERLESS_FETCH_HTML_CONTENTThis 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.

Input Parameters

string
required
The URL of the webpage to fetch HTML content from
boolean
Whether to continue on error
object
Navigation options like waitUntil
object
Wait for specific event with optional timeout
integer
Wait for specific time in milliseconds
object
Wait for specific element with optional timeout
array
Types of resources to block (e.g., images, stylesheets)
array
Patterns to block specific requests

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BROWSERLESS_GENERATE_PDFGenerates a PDF from a webpage URL or HTML using Browserless. Options include paper format, navigation wait conditions, and waiting for a page element; the resulting PDF data is returned as a base64-encoded string.

Input Parameters

string
URL of the webpage to generate PDF from
string
HTML content to generate PDF from
object
PDF generation options based on Puppeteer’s PDFOptions.
array
Custom style tags to inject
boolean
Continue on error
object
Navigation options for page loading.
array
Custom script tags to inject
object
Options for waiting for a selector to appear.
array
Resource types to block
array
Request patterns to block

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BROWSERLESS_SCRAPE_CONTENTA 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.

Input Parameters

string
required
The URL to scrape content from
array
required
Array of objects containing CSS selectors to extract
object
Options for page navigation
object
Wait for a specific event to occur
integer
Wait specified milliseconds before scraping
object
Wait for a custom JavaScript function to return true
object
Wait for a specific selector to appear

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BROWSERLESS_TAKE_SCREENSHOTA 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.

Input Parameters

string
required
The URL of the webpage to capture
integer
X coordinate for clipping the screenshot
integer
Y coordinate for clipping the screenshot
integer
The quality of the image (0-100, only applies to jpeg)
boolean
Whether to capture the full page or just the viewport
integer
Width of the clipping area
string ("png" | "jpeg")
The type of image to return (png or jpeg)
integer
Height of the clipping area
boolean
Whether to omit the background in the screenshot

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: BROWSERLESS_UNBLOCK_PROTECTED_CONTENTRequests protected webpage content through Browserless’s unblock API, with optional waiting conditions. It can also request cookies, a screenshot, or a browser WebSocket endpoint.

Input Parameters

integer
Time to live for the browser instance in milliseconds
string
required
The URL of the protected webpage to access
boolean
Whether to return the HTML content of the page
boolean
Whether to return cookies from the page
boolean
Whether to return a screenshot of the page
object
Event to wait for before returning the response
object
Function to execute and wait for before returning the response
object
Selector to wait for before returning the response
boolean
Whether to return a WebSocket endpoint for browser automation

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not