Cloudflare Browser Rendering

tool

Enables LLMs to read webpages by processing them into Markdown with the Cloudflare Browser Rendering API

jerieljan
@jerieljan
·
a year ago
103
0
1.8K
Updated a year ago
Created Jul 20, 2025
cloudflare_browser_rendering.py
Python · 254 lines
"""
title: Cloudflare Browser Rendering
author: jerieljan
version: 0.3
license: MIT License
description: Enables LLMs to read webpages by processing them into Markdown with the Cloudflare Browser Rendering API
"""

from pydantic import BaseModel, Field
from typing import Optional, Callable, Any, Dict, List
import requests
import asyncio

Cloudflare Browser Rendering

Enables LLMs to read webpages by processing them into Markdown with the Cloudflare Browser Rendering API.

This tool in particular focuses on the /markdown capabilities of the API since it works nicely with LLMs. It does not utilize the /content or /scrape HTML commands, but is still sufficient for parsing website content.

Read more at: https://developers.cloudflare.com/browser-rendering/

Requirements

You need:

Usage

  • Add this under Workspace -> Tools
  • Configure Valves and define your account ID and custom API token
  • Start a new chat, select the tool under (+) and provide a URL.

Limitations

  • This is subject to the limits and restrictions of Cloudflare's Browser Rendering service. Observe rate limits, and scraping limitations.

0