RAG Web Browser
Fetch one public web page through a browser and return clean RAG-ready text, Markdown, headings, links, images, JSON-LD type hints, and query snippets.
Workspace
Configure
Inputs stay here while results become exportable artifacts.
Start from an example
Results
Preview, inspect, copy, or export the complete output.
Your result will become an artifact
Run the tool to inspect structured rows, raw JSON, execution details, and downloadable JSON, CSV, and Markdown files.
Overview
RAG Web Browser gives agents a focused retrieval primitive: open one public web page in a real browser, remove noisy markup, and return clean content that is easy to cite, embed, summarize, or route into a retrieval pipeline. It preserves the source URL, canonical URL, title, headings, Markdown-style body text, link citations, and optional query snippets so downstream LLM steps can reason over the page without parsing HTML.
Last validated: Jul 15, 2026
Input
urlstring (uri)requiredPublic page URL to render and extract
querystringOptional query terms used to return simple match counts and snippets from the extracted text
countrystringOptional two-letter country code for geo-localized public pages
wait_msintegerdefault: 500Additional browser wait time after DOMContentLoaded
max_linksintegerdefault: 20Maximum page links to return as citation candidates
max_imagesintegerdefault: 0Maximum images to return
max_text_charsintegerdefault: 12000Maximum characters to return in text and markdown
Output
urlstringrequiredRequested URL
textstringrequiredCleaned plain text
linksobject[]Page links, capped by max_links
querystringQuery used for snippets
titlestringrequiredResolved page title
imagesobject[]Page images, capped by max_images
headingsobject[]languagestringHTML language code when present
markdownstringrequiredMarkdown-style content preserving headings, lists, and quotes
snippetsstring[]Short snippets around matched query terms
final_urlstringrequiredFinal URL after redirects
word_countintegerrequiredExtracted word count
descriptionstringMeta description when present
canonical_urlstringCanonical URL when present
json_ld_typesstring[]JSON-LD @type values found on the page
query_matchesobject[]reading_time_minutesintegerrequiredApproximate reading time at 225 words per minute
Examples
example-domain-fetch
{
"url": "https://example.com",
"query": "illustrative examples",
"max_links": 5,
"max_text_chars": 2000
}query-string-preserved
{
"url": "https://example.com/?campaign=better-fetch",
"max_links": 1,
"max_text_chars": 1000
}Use cases
FAQ
Does RAG Web Browser search the web?
This v0.1 fetches one URL at a time. Google search orchestration is intentionally left for a later version so the published tool stays predictable and easy to validate.
What is the difference between text and markdown?
text is the cleaned body content joined as plain text. markdown keeps simple heading, list, and quote structure so an LLM can preserve document shape.
Can it fetch dynamic pages?
Yes. It renders through the Better Fetch browser engine with a configurable wait time, then extracts the visible HTML returned by that browser session.
Use it anywhere
MCP (Claude, ChatGPT, Codex)
# After connecting https://betterfetch.co/api/mcp, ask your AI to:
1. Call search_tools for "RAG Web Browser"
2. Call run_tool with:
name: "rag_web_browser"
input: {"url":"https://example.com","query":"illustrative examples","max_links":5,"max_text_chars":2000}REST
curl -sS -X POST "https://betterfetch.co/api/tools/rag_web_browser/run" \
-H "Authorization: Bearer bf_your_key_here" \
-H "Content-Type: application/json" \
-d '{"input": {"url":"https://example.com","query":"illustrative examples","max_links":5,"max_text_chars":2000}}'Run locally
git clone https://github.com/better-fetch/tools/tree/main/tools/rag-web-browser && cd rag-web-browser && npm i
BETTER_FETCH_API_KEY=bf_your_key_here npx bf-tool run --input '{"url":"https://example.com","query":"illustrative examples","max_links":5,"max_text_chars":2000}'