Cloudflare Browser Rendering
cloudflare_browser_renderingCloudflare Browser Rendering enables developers to programmatically control and interact with headless browser instances running on Cloudflare’s global network, facilitating tasks such as automating browser interactions, capturing screenshots, generating PDFs, and extracting data from web pages.
Acciones disponibles (4)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Capture ScreenshotCLOUDFLARE_BROWSER_RENDERING_CAPTURE_SCREENSHOTAcciónTool to capture a webpage screenshot. Use when you need a visual snapshot of a URL or HTML with optional viewport and clipping.
CLOUDFLARE_BROWSER_RENDERING_CAPTURE_SCREENSHOTAcciónTool to capture a webpage screenshot. Use when you need a visual snapshot of a URL or HTML with optional viewport and clipping.
Parámetros de entrada
urlstringuriURL of the page to capture; required if `html` is unset
htmlstringRaw HTML content to render; required if `url` is unset
cacheTTLintegerCache TTL in seconds (0 disables cache)
viewportobjectViewport dimensions
account_idstringObligatorioCloudflare account identifier
screenshotOptionsobjectScreenshot options like fullPage or clip
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List AccountsCLOUDFLARE_BROWSER_RENDERING_LIST_ACCOUNTSAcciónTool to list all Cloudflare accounts accessible. Use to retrieve a valid account_id for further browser rendering actions.
CLOUDFLARE_BROWSER_RENDERING_LIST_ACCOUNTSAcciónTool to list all Cloudflare accounts accessible. Use to retrieve a valid account_id for further browser rendering actions.
Parámetros de entrada
namestringFilter accounts by name (partial match)
pageintegerPage number (1-based).
per_pageintegerNumber of accounts per page (5-50).
directionstringenumSort direction of results. Allowed values: 'asc' or 'desc'
ascdesc
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Scrape HTML ElementsCLOUDFLARE_BROWSER_RENDERING_SCRAPE_HTML_ELEMENTSAcciónTool to scrape HTML elements for text, HTML, attributes, and box metrics. Use when you need detailed data of matched selectors after rendering a page.
CLOUDFLARE_BROWSER_RENDERING_SCRAPE_HTML_ELEMENTSAcciónTool to scrape HTML elements for text, HTML, attributes, and box metrics. Use when you need detailed data of matched selectors after rendering a page.
Parámetros de entrada
urlstringuriPage URL to navigate and scrape
htmlstringInline HTML document to render and scrape
cacheTTLintegerOptional cache TTL in seconds; default=5; set 0 to disable
elementsobject[]ObligatorioList of CSS selectors to scrape
account_idstringObligatorioCloudflare Account ID
actionTimeoutintegerMax time after load to run actions, in milliseconds (max 300000)
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Take Webpage SnapshotCLOUDFLARE_BROWSER_RENDERING_TAKE_WEBPAGE_SNAPSHOTAcciónTool to capture rendered HTML and screenshot of a webpage. Use when you need both DOM content and an image in one request with custom loading and capture settings.
CLOUDFLARE_BROWSER_RENDERING_TAKE_WEBPAGE_SNAPSHOTAcciónTool to capture rendered HTML and screenshot of a webpage. Use when you need both DOM content and an image in one request with custom loading and capture settings.
Parámetros de entrada
urlstringuriPage URL to navigate to (must set url or html)
htmlstringRaw HTML to render instead of URL
cookiesobject[]List of cookies to set before navigation
cacheTTLintegerCache TTL in seconds (0 disables caching, max 86400)
viewportobjectViewport dimensions and device emulation
userAgentstringCustom user agent string
account_idstringObligatorioCloudflare account identifier
addStyleTagobject[]Styles to inject into the page
bestAttemptbooleanContinue even if certain events fail
gotoOptionsobjectNavigation settings before snapshot
addScriptTagobject[]Scripts to inject into the page
authenticateobjectHTTP authentication credentials
actionTimeoutintegerMax time in ms for post-load actions
waitForTimeoutintegerWait time in ms before proceeding
waitForSelectorobjectWait for an element before snapshot
emulateMediaTypestringEmulate CSS media type (e.g., 'print')
screenshotOptionsobjectOptions controlling screenshot capture
allowResourceTypesstring[]Allowed resource types
allowRequestPatternstring[]Regex patterns to allow requests
rejectResourceTypesstring[]Blocked resource types
setExtraHTTPHeadersobjectAdditional HTTP headers for navigation
rejectRequestPatternstring[]Regex patterns to block requests
setJavaScriptEnabledbooleanEnable or disable JavaScript execution
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not