Skip to main content
Plugin ID: cloudflare | Auth: None
This plugin uses Cloudflare’s “Markdown for Agents” feature, which converts HTML to markdown on-the-fly via content negotiation (Accept: text/markdown). It works on any Cloudflare-hosted site with the feature enabled and reduces token usage by ~80% compared to raw HTML.

Tools

cloudflare.fetch_markdown

Name: Fetch Page as Markdown Fetch a web page as clean markdown. Falls back to HTML if the site doesn’t support markdown content negotiation. Input:
ParameterTypeRequiredDefaultDescription
urlstringYesURL to fetch
fallbackToHtmlbooleanNotrueReturn HTML body if markdown is not supported
Output:
{
  "content": "# Page Title\n\nThis is the page content in clean markdown...",
  "contentType": "text/markdown; charset=utf-8",
  "isMarkdown": true,
  "estimatedTokens": 450,
  "url": "https://blog.cloudflare.com/some-article/"
}
When isMarkdown is false, the site doesn’t support the feature and the content is HTML (or an error message if fallbackToHtml is false).