---
title: New formats parameter for the Browser Run /snapshot endpoint
description: Browser Run's /snapshot endpoint now accepts a formats parameter to return Markdown and the accessibility tree alongside HTML and screenshots.
image: https://edgetunnel-b2h.pages.dev/changelog-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://edgetunnel-b2h.pages.dev/changelog/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

# Changelog

New updates and improvements at Cloudflare.

[ Subscribe to RSS ](https://edgetunnel-b2h.pages.dev/changelog/rss/index.xml) [ View RSS feeds ](https://edgetunnel-b2h.pages.dev/fundamentals/new-features/available-rss-feeds/) 

![hero image](https://edgetunnel-b2h.pages.dev/_astro/hero.CVYJHPAd_26AMqX.svg) 

[ ← Back to all posts ](https://edgetunnel-b2h.pages.dev/changelog/) 

## New formats parameter for the Browser Run /snapshot endpoint

Jun 11, 2026 

[ Browser Run ](https://edgetunnel-b2h.pages.dev/browser-run/) 

[Browser Run](https://edgetunnel-b2h.pages.dev/browser-run/)'s [/snapshot endpoint](https://edgetunnel-b2h.pages.dev/browser-run/quick-actions/snapshot/) now supports a `formats` parameter that lets you return multiple page formats in a single API call. Previously, `/snapshot` returned only HTML content and a screenshot. You can now also include Markdown and the accessibility tree in the same response.

These formats are particularly useful for AI agent workflows:

* Markdown provides a token-efficient representation of page content that LLMs can process directly, without parsing HTML markup.
* The accessibility tree provides a structured representation of a page's elements, including roles, labels, and hierarchy, helping LLMs understand page structure and navigate its contents.

The following example returns a screenshot, Markdown, and the accessibility tree in one call:

* [ curl ](#tab-panel-2728)
* [ TypeScript SDK ](#tab-panel-2729)
* [ Workers Bindings ](#tab-panel-2730)

```bash
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-rendering/snapshot' \
  -H 'Authorization: Bearer <apiToken>' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/",
    "formats": ["screenshot", "markdown", "accessibilityTree"]
  }'
```

**TypeScript**

```typescript
import Cloudflare from "cloudflare";


const client = new Cloudflare({
  apiToken: process.env["CLOUDFLARE_API_TOKEN"],
});


const snapshot = await client.browserRendering.snapshot.create({
  account_id: process.env["CLOUDFLARE_ACCOUNT_ID"],
  url: "https://example.com/",
  formats: ["screenshot", "markdown", "accessibilityTree"],
});


console.log(snapshot.markdown);
console.log(snapshot.accessibilityTree);
```

**TypeScript**

```typescript
interface Env {
  BROWSER: BrowserRun;
}


export default {
  async fetch(request, env): Promise<Response> {
    return await env.BROWSER.quickAction("snapshot", {
      url: "https://example.com/",
      formats: ["screenshot", "markdown", "accessibilityTree"],
    });
  },
} satisfies ExportedHandler<Env>;
```

You must request at least two formats. If you only need one, use the respective single-format endpoint such as [/screenshot](https://edgetunnel-b2h.pages.dev/browser-run/quick-actions/screenshot-endpoint/) or [/markdown](https://edgetunnel-b2h.pages.dev/browser-run/quick-actions/markdown-endpoint/).

Refer to the [/snapshot documentation](https://edgetunnel-b2h.pages.dev/browser-run/quick-actions/snapshot/) for the full list of accepted values.

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://edgetunnel-b2h.pages.dev/changelog/post/2026-06-11-browser-run-snapshot-formats/#page","headline":"New formats parameter for the Browser Run /snapshot endpoint · Changelog","description":"Browser Run's /snapshot endpoint now accepts a formats parameter to return Markdown and the accessibility tree alongside HTML and screenshots.","url":"https://edgetunnel-b2h.pages.dev/changelog/post/2026-06-11-browser-run-snapshot-formats/","inLanguage":"en","image":"https://edgetunnel-b2h.pages.dev/changelog-preview.png","dateModified":"2026-06-11","datePublished":"2026-06-11","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://edgetunnel-b2h.pages.dev/#website","name":"Cloudflare Docs","url":"https://edgetunnel-b2h.pages.dev/"}}
```
