How does the Cloudflare Agentic Browser turn a page into JSON? On 13 November 2026 local wrangler returns only schema-shaped placeholders
On 13 November 2026, Browser Run Quick Actions started working under npx wrangler dev. Screenshots and Markdown hit Chrome on your machine. The json action does not: Workers AI is not local, so the result is a placeholder filled from response_format. Fields with const or enum look as if the page was read. The same week, the 12 November changelog open-sourced Kitesurf. That does not remove the local limit.
Before you read
| Object | Public fact in November 2026 | What automation does with it |
|---|---|---|
| /json | One-shot extraction. Send url or html, plus prompt or response_format. The default model is @cf/meta/llama-3.3-70b-instruct-fp8-fast. REST needs a Browser Run - Edit token. A Worker binding does not | The model fills JSON. Browser Run opens the page and closes it. That is not a lasting login |
| Local wrangler | Before 13 November, quickAction failed with The RPC receiver does not implement the method "quickAction". From that day, most actions use local Chrome. json fills the schema and logs a warning. browser: "kitesurf" throws. The note shipped with wrangler 4.161.1 | const, the first enum entry, and default are not page evidence. Set remote: true for a real extract |
| browserTool | Since 13 October, Agents SDK 0.28.0 and later can keep tabs, cookies, and the login into the next turn, including across Durable Object hibernation. The default idle timeout is 10 minutes. Expiry or a crash opens a new browser and reports restarted: true | Use it when the next turn needs the same login. browser_extract does not see that login |
| Kitesurf | The 12 November changelog announced the Apache 2.0 release. The blog post is dated 13 November. It runs on Workers, with no browser container, speaks CDP, and is still experimental. Self-hosting needs Dynamic Workers on the Workers Paid plan and has no built-in login | Do not pass kitesurf to a local Quick Action. Put Access in front of a self-hosted engine. Do not open untrusted sites locally |
The shop shop.example.test and order A-1042 are fictional. Do not commit a token; the placeholder is sk_demo_not_real. The JSON below follows the public rules. It is not a captured production response.
How does an agent get JSON out of Cloudflare's browser now?
After mid-November there are still three paths. Do not fold them into one tool call. The model fills arguments or CDP code. Opening the page, extracting fields, and closing the browser belong to the host. quickAction needs a compatibility_date of 2026-03-24 or later.
- One-shot extraction.
browser_extractandenv.BROWSER.quickAction("json", …)open a new browser, return, and close it. They do not share a browser or a login withbrowserTool. For a protected page, the host putscookiesandauthenticateinoptions. The model does not see them. Results are cut at 50,000 characters by default. - CDP in a sandbox.
browser_executeruns model-written code against CDP inside a Worker sandbox. The default isone-shot, a new session each time.reusekeeps a named session until you close it.dynamiccan promote a one-shot session after a login. A human-approval pause keeps the session. If Browser Run expires it first, resume errors and the model starts over. - A browser you can return to. The persistent
browserToolis also model-written CDP. Each Pi conversation gets its own active tab by default. Cookies stay shared in that browser. The AI SDK and TanStack adapters share one tab whenscopeis omitted. The session can also open internal hostnames that only this agent serves, such as a dev server in its sandbox, without publishing that server first.
Tools a page declares itself are a different product: how WebMCP lists tools on the current page. Calling the Cloudflare API with cf is not reading a page either: how the cf 1.0 RC previews an API request. This piece is only how Browser Run turns a page into JSON after 12 and 13 November.
The schema locks the shape. A sentence that says please print JSON does not
REST is POST /accounts/<accountId>/browser-run/json. Send url or html, and at least one of prompt or response_format. response_format.type is json_schema. The structure sits in the nested json_schema object. The hostname below is fictional. The keys you extract come from your own page:
{
"url": "https://shop.example.test/orders/A-1042",
"prompt": "Read the order id, status, and total from the main order section.",
"response_format": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"order_id": { "type": "string", "const": "A-1042" },
"status": { "type": "string", "enum": ["open", "shipped"] },
"total": { "type": "number" }
},
"required": ["order_id", "status"]
}
}
}
required is a gate, not a polite line in the prompt. See why a schema is a gate. With only a prompt, the documented success example can use a key the model invented. That result cannot take a fixed JSONPath. To switch models, pass a custom_ai array. Browser Run tries them in order and moves on when one errors. A Workers AI model does not need authorization. Other providers need a bearer token. Do not put the token in the prompt. The only placeholder for a repo is sk_demo_not_real.
The documented REST success body puts the extracted object in result, under success. Look at the body you actually received before you pick a path. For a single-page app, set gotoOptions.waitUntil to networkidle0 or networkidle2. If you know the selector, waitForSelector is faster than waiting for every request to stop. A top-level userAgent does not stop Browser Run requests from being identified as a bot. Sites should use the non-configurable headers, not the User-Agent string.
Local json fills by rule. remote is what reads the page
The 13 November docs fix the local fill. A field with const, enum, or default gets that value. An enum uses its first entry. Other strings are empty, numbers are 0, booleans are false, and arrays are empty. Apply that rule to the schema above and local json returns the object below. It is not the order on the page:
{
"order_id": "A-1042",
"status": "open",
"total": 0
}
order_id copies const. status copies the first enum entry, open. total is a number with no default, so it becomes 0. Wrangler logs a warning. The warning is not inside the object you parse. For a real extract, or to use Kitesurf locally, set the browser binding to remote. The Agents SDK Quick Action tools also require remote: true for local wrangler dev:
{
"compatibility_date": "2026-03-24",
"browser": {
"binding": "BROWSER",
"remote": true
}
}
Amounts in a remote result come from the page. This article does not invent a captured response. When a persistent session ends, session.close() reports what happened to the browser, not the order. The documented keys are restarted, newTabs, tabClosed, tabShared, and notices. The object below shows only the boolean whose meaning is already specified. Do not invent item shapes for the other four. Read them from the SDK you run:
{
"restarted": true
}
When restarted is true, the old tabs, cookies, and login are gone. The tool opens a new browser. The default idle time is 10 minutes. Durable Object hibernation does not store the browser forever. With Kitesurf and browser_execute, set session.browser to kitesurf. That engine supports one-shot execution only. The docs say session reuse, pause and resume, Live View, recording, keepAliveMs, cdp.spec(), and Quick Actions on Kitesurf are unavailable.
A placeholder, an extract, and a session report do different jobs
A script usually collapses these six into "the page was read":
| What you see | What it means |
|---|---|
| A local json placeholder | The shape matches response_format.json_schema. Values come from const, the first enum entry, default, or an empty string, 0, false, or an empty array. Wrangler logs a separate warning. This is not page content. |
| result from remote or REST | An object extracted by Workers AI by default, or by custom_ai. The documented example wraps it in success and result. Null or empty means a clearer prompt, a schema, another model, or waitUntil for a SPA. |
| Prompt only | There is no schema gate. Key names can be ones the model invented. A hard-coded JSONPath will not hold. |
| What browser_execute returns | The sandbox code's return value, not the /json schema. The default is a new session each call. Kitesurf supports only this one-shot execution. |
| The session.close() report | Whether the browser restarted and whether tabs changed. restarted: true means the old tabs and login are gone. It is not an extract. Unused, it can be undefined. |
| quickAction before 13 November | An RPC error: the method quickAction does not exist. That is not an empty JSON object. Wrangler older than 4.161.1 still does this. |
Keep the bearer token in custom_ai in a Worker secret. Do not put it in arguments the model can see. How keys show up in config and logs: how keys leak from config and logs. Self-hosted Kitesurf has no built-in login. The changelog says to put Cloudflare Access, or another auth layer, in front. The local README says not to open untrusted sites. Page JavaScript runs in workerd, which is not a hardened sandbox. The local dev server defaults to http://127.0.0.1:8787.
Six steps before that order JSON goes downstream
Do not start from "local already returned A-1042":
- Pick the session. Fields only, no login: use
browser_extractorquickAction("json"). The next turn needs the same login: use the persistentbrowserTool, orreuse/dynamic. - Write response_format. Put only the keys you must have in
required.constand the firstenumentry are copied into the local placeholder. They do not prove the page was read. - Match wrangler. To test a real extract locally, add
remote: trueon the binding. On a build older than the 4.161.1 note, confirm you no longer get the missing-quickAction error. - Read the wrapper, then the fields. The REST example has
successandresult. The local placeholder follows the schema's own shape. Do not mix the paths. - Wait for a SPA. If the result is empty, add
gotoOptions.waitUntil. Switch towaitForSelectoronce you know the node. - Read restarted. If it is true, treat the browser as new. Do not reuse the previous order page. Put Access in front of self-hosted Kitesurf. Do not hand it an untrusted URL locally.
Cookies and the viewport the host puts in options are not shown to the model. Quick Actions and browserTool do not share that login. To read a page after login, either pass credentials into that one Quick Action or stay inside the persistent session.
Line up four JSON values before anything downstream
A bad handoff is usually a local placeholder treated as the page, or a session report treated as the order.
- Format the request body and
response_format.json_schema, then use Schema validator to check thatrequired,const, andenumare the gate you meant. - Use JSONPath for
$.result.order_idand$.result.total. Confirmsuccessis there first. A local placeholder may omit that wrapper. Read$.order_idinstead. - Use JSON Diff on the local placeholder and the remote
result. An equalorder_idonly means both copiedconst.totalmoving off 0 is what looks like a page read. - Run redaction before a
custom_aiauthorizationlands in a log. Do not paste an account, a cookie, or a token into a formatter that uploads. JSONSort runs in the browser.
Hand the object downstream only when the four values agree. Indentation is not an error. A zero can be the placeholder or a real amount. Separate them by the diff against the remote result.
Common traps
- Treating the local placeholder as a successful extract.
A-1042andopencan come entirely from the schema. A number 0, an empty string, false, and an empty array are the fill for every other field. The warning is in the log, not in the object. - Passing kitesurf to a local Quick Action.
quickActionon the binding throws. In the Agents SDK, Kitesurf also cannot run Quick Actions, reuse a session, pause and resume, serve Live View, record, or callcdp.spec(). - Assuming browser_extract inherits the browserTool login. The docs say they do not share a browser or a login. The host puts cookies into that call's options.
- Sending only a prompt, then reading a fixed path. Without a schema, key names are unstable. If you need a stable shape, send
response_formatas well. - Using userAgent to skip bot detection. The docs say this does not work. Browser Run requests are still identified as a bot. Detection should use the non-configurable headers.
- Leaving self-hosted Kitesurf open on the public internet. It has no built-in authentication. The Workers Paid plan pays for Dynamic Workers. It does not decide who may open the CDP socket. Do not open untrusted sites on a local instance either.
FAQ
Why is the local order_id right while total is 0?
order_id set const, so the local fill copies that constant. If status is an enum, the fill copies the first entry. total is a number with no const, enum, or default, so it is 0. That is the 13 November rule, not the amount on the page.
After remote: true, does the call still use Chrome on my machine?
No. remote: true sends that Quick Action to Browser Run. Without it, wrangler dev after 13 November uses local Chrome for screenshots, Markdown, links, and the other non-json actions. json stays a placeholder, and kitesurf throws.
Now that Kitesurf is open source, does /json extract through it?
No. /json still uses Workers AI Llama 3.3 70B by default. Local Quick Actions explicitly do not support Kitesurf. In the Agents SDK it can be the one-shot engine for browser_execute. It cannot reuse a session, and it cannot run Quick Actions.
Does browser_extract require a Durable Object?
Quick Actions need only the browser binding. They do not need a Durable Object, a Worker Loader, or a sandbox. browser_execute and the persistent browserTool do. browser_execute also needs a CodemodeRuntime export from the Worker, unless the build plugin already adds it.
What should I check first when /json returns null or an empty object?
Name the region of the page in the prompt, and send response_format. If the default model is not enough, switch with custom_ai. In local development, confirm remote: true, or you are looking at a placeholder. For a SPA, add gotoOptions.waitUntil. When parsing fails, the error response can include rawAiResponse so you can read the model text.
Conclusion
After 13 November, local development can run Browser Run Quick Actions, but json only fills the schema. Kitesurf, open-sourced on 12 November, does not remove that limit. To read a page, treat the schema as a gate and trust the remote result only after you diff it against the placeholder.
The model fills JSON. Browser Run opens the page. If the next turn still needs the login, stay in the persistent session and check restarted. Leave const and the first enum entry in the schema. Do not read them as the order status.
Further reading
- Cloudflare WebMCP Tools the current page declares. Not this Browser Run extract
- How the cf 1.0 RC previews an API request That is a Cloudflare API command, not a page read
- Coding agents and API keys Keep the custom_ai token in a secret, not in the prompt
- Why a schema is a gate required constrains the shape. It is not a sentence that says please print JSON
- The JSONSort local toolbox Format, validate, Diff, JSONPath. In the browser, nothing uploaded
- All articles More notes on JSON and AI development
Checked . First published. Sources: the Cloudflare Quick Actions local-development note of 13 November 2026, the Kitesurf open-source note of 12 November 2026, and the Browser Run /json and Agents SDK browser-tool docs.