[{"data":1,"prerenderedAt":390},["ShallowReactive",2],{"navigation_docs":3,"-guide-webmcp":100,"-guide-webmcp-surround":385},[4,52],{"title":5,"path":6,"stem":7,"children":8,"icon":51},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Scrape","\u002Fguide\u002Fscrape","1.guide\u002F02.scrape",{"title":16,"path":17,"stem":18},"Screenshots and PDFs","\u002Fguide\u002Fcaptures","1.guide\u002F03.captures",{"title":20,"path":21,"stem":22},"Links and accessibility and extract","\u002Fguide\u002Freading","1.guide\u002F04.reading",{"title":24,"path":25,"stem":26},"WebMCP","\u002Fguide\u002Fwebmcp","1.guide\u002F05.webmcp",{"title":28,"path":29,"stem":30},"Crawl and search","\u002Fguide\u002Fcrawl","1.guide\u002F06.crawl",{"title":32,"path":33,"stem":34},"Sessions","\u002Fguide\u002Fsessions","1.guide\u002F07.sessions",{"title":36,"path":37,"stem":38},"CLI","\u002Fguide\u002Fcli","1.guide\u002F08.cli",{"title":40,"path":41,"stem":42},"MCP, Pi, OMP and AI SDK","\u002Fguide\u002Fagents","1.guide\u002F09.agents",{"title":44,"path":45,"stem":46},"Errors","\u002Fguide\u002Ferrors","1.guide\u002F10.errors",{"title":48,"path":49,"stem":50},"Custom providers","\u002Fguide\u002Fcustom","1.guide\u002F11.custom","i-lucide-book-open",{"title":53,"path":54,"stem":55,"children":56,"icon":99},"Providers","\u002Fproviders","2.providers\u002F00.index",[57,59,63,67,71,75,79,83,87,91,95],{"title":58,"path":54,"stem":55},"Every provider",{"title":60,"path":61,"stem":62},"Steel","\u002Fproviders\u002Fsteel","2.providers\u002F01.steel",{"title":64,"path":65,"stem":66},"Browserbase","\u002Fproviders\u002Fbrowserbase","2.providers\u002F02.browserbase",{"title":68,"path":69,"stem":70},"Kernel","\u002Fproviders\u002Fkernel","2.providers\u002F03.kernel",{"title":72,"path":73,"stem":74},"Browserless","\u002Fproviders\u002Fbrowserless","2.providers\u002F04.browserless",{"title":76,"path":77,"stem":78},"Hyperbrowser","\u002Fproviders\u002Fhyperbrowser","2.providers\u002F05.hyperbrowser",{"title":80,"path":81,"stem":82},"Anchor","\u002Fproviders\u002Fanchor","2.providers\u002F06.anchor",{"title":84,"path":85,"stem":86},"Cloudflare","\u002Fproviders\u002Fcloudflare","2.providers\u002F07.cloudflare",{"title":88,"path":89,"stem":90},"Playwright","\u002Fproviders\u002Fplaywright","2.providers\u002F08.playwright",{"title":92,"path":93,"stem":94},"Lightpanda","\u002Fproviders\u002Flightpanda","2.providers\u002F09.lightpanda",{"title":96,"path":97,"stem":98},"Attach","\u002Fproviders\u002Fattach","2.providers\u002F10.attach","i-lucide-server",{"id":101,"title":24,"body":102,"description":377,"extension":378,"links":379,"meta":380,"navigation":382,"path":25,"seo":383,"stem":26,"__hash__":384},"docs\u002F1.guide\u002F05.webmcp.md",{"type":103,"value":104,"toc":369},"minimark",[105,109,114,122,138,152,156,159,190,198,228,231,251,257,261,264,287,293,300,310,314,320,323,326,329,333,336,352,358,365],[106,107,108],"p",{},"Ask a page through the tools it offers agents. WebMCP gives you a way to discover those tools and call them with JSON input. Radar can hand you its own search instead of making you scrape HTML and guess what its search box does. That's a much nicer conversation.",[110,111,113],"h2",{"id":112},"what-is-webmcp","What is WebMCP?",[106,115,116,117,121],{},"A page registers a tool with ",[118,119,120],"code",{},"document.modelContext.registerTool({ name, description, inputSchema, execute })",". Each tool has a name, a description, and a JSON schema for its input. The page can also provide hints.",[106,123,124,125,128,129,132,133,137],{},"Use ",[118,126,127],{},"browsers_webmcp_tools"," to list a page's tools and ",[118,130,131],{},"browsers_webmcp_call"," to run one. Both are available to agents. The ",[134,135,136],"a",{"href":41},"agents guide"," covers agent use.",[106,139,140,141,143,144,147,148,151],{},"WebMCP works with ",[134,142,84],{"href":85}," only, for now. Chromium is the default engine. Use ",[118,145,146],{},"--browser kitesurf"," in the CLI or ",[118,149,150],{},"browser: \"kitesurf\""," with an agent to use Cloudflare's Kitesurf engine. Both engines gave the same answer on Radar.",[110,153,155],{"id":154},"how-do-i-list-a-pages-tools","How do I list a page's tools?",[106,157,158],{},"The list waits for the page to load, then waits for tools to stop arriving. Some pages register them a second or so after load. Here the output limit cuts the list short:",[160,161,166],"pre",{"className":162,"code":163,"language":164,"meta":165,"style":165},"language-bash shiki shiki-themes browsers browsers browsers","browsers webmcp-tools https:\u002F\u002Fradar.cloudflare.com\u002F --max-chars 700\n","bash","",[118,167,168],{"__ignoreMap":165},[169,170,173,177,181,184,187],"span",{"class":171,"line":172},"line",1,[169,174,176],{"class":175},"sK71F","browsers",[169,178,180],{"class":179},"shU9J"," webmcp-tools",[169,182,183],{"class":179}," https:\u002F\u002Fradar.cloudflare.com\u002F",[169,185,186],{"class":179}," --max-chars",[169,188,189],{"class":179}," 700\n",[160,191,196],{"className":192,"code":194,"language":195,"meta":165},[193],"language-text","[provider=cloudflare] https:\u002F\u002Fradar.cloudflare.com\u002F: 6 WebMCP tools\n\nset-location\n  Filter Radar to a country, region, continent, or ASN (e.g. 'US', 'europe', 'AS13335'). Pages that can't be filtered by that location redirect to one that can.\n  input: {\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"Country code, region\u002Fcontinent slug, or ASN.\"}},\"required\":[\"location\"]}\n\n[truncated 1732 of 2061 characters]\n","text",[118,197,194],{"__ignoreMap":165},[106,199,200,201,204,205,204,208,204,211,204,214,217,218,221,222,224,225,227],{},"The full list contains ",[118,202,203],{},"set-location",", ",[118,206,207],{},"set-date-range",[118,209,210],{},"navigate-to",[118,212,213],{},"search",[118,215,216],{},"set-theme",", and ",[118,219,220],{},"get-current-view",". Radar marks ",[118,223,213],{}," and ",[118,226,220],{}," as read-only and as containing untrusted content.",[106,229,230],{},"A page without WebMCP returns an empty list, not an error:",[160,232,234],{"className":162,"code":233,"language":164,"meta":165,"style":165},"browsers webmcp-tools https:\u002F\u002Fexample.com --browser kitesurf\n",[118,235,236],{"__ignoreMap":165},[169,237,238,240,242,245,248],{"class":171,"line":172},[169,239,176],{"class":175},[169,241,180],{"class":179},[169,243,244],{"class":179}," https:\u002F\u002Fexample.com",[169,246,247],{"class":179}," --browser",[169,249,250],{"class":179}," kitesurf\n",[160,252,255],{"className":253,"code":254,"language":195,"meta":165},[193],"[provider=cloudflare] https:\u002F\u002Fexample.com: no WebMCP tools. The page registered none once it loaded.\n",[118,256,254],{"__ignoreMap":165},[110,258,260],{"id":259},"how-do-i-call-a-page-tool","How do I call a page tool?",[106,262,263],{},"Pass the tool name and JSON input. Radar's search answers with its own links:",[160,265,267],{"className":162,"code":266,"language":164,"meta":165,"style":165},"browsers webmcp-call https:\u002F\u002Fradar.cloudflare.com\u002F search --input '{\"query\":\"1.1.1.1\"}'\n",[118,268,269],{"__ignoreMap":165},[169,270,271,273,276,278,281,284],{"class":171,"line":172},[169,272,176],{"class":175},[169,274,275],{"class":179}," webmcp-call",[169,277,183],{"class":179},[169,279,280],{"class":179}," search",[169,282,283],{"class":179}," --input",[169,285,286],{"class":179}," '{\"query\":\"1.1.1.1\"}'\n",[160,288,291],{"className":289,"code":290,"language":195,"meta":165},[193],"[provider=cloudflare] https:\u002F\u002Fradar.cloudflare.com\u002F search:\n\n## Pages and Sections\n- Start a scan of https:\u002F\u002F1.1.1.1\u002F (\u002Fscan?url=https:\u002F\u002F1.1.1.1\u002F)\n- Check 1.1.1.1 for post-quantum TLS key exchange support (\u002Fpost-quantum?host=1.1.1.1#website-support)\n- 1.1.1.1 Resolver (\u002Fdns)\n- DNS cache hit ratio (\u002Fdns#dns-cache-hit-ratio)\n- DNSSEC client awareness (\u002Fdns#dnssec-client-awareness)\n- End-to-end security (\u002Fdns#end-to-end-security)\n- DNSSEC validation status (\u002Fdns#dnssec-validation-status)\n- Geographical distribution (\u002Fdns#geographical-distribution)\n## IP Address\n- 1.1.1.1 (\u002Fip\u002F1.1.1.1)\n## Events\n- Issues with 1.1.1.1 public resolver · WORLD · Jul 14, 2025 (\u002Fdns?dateStart=2025-07-14&dateEnd=2025-07-14)\n",[118,292,290],{"__ignoreMap":165},[106,294,295,296,299],{},"When the tool answers in MCP form, ",[118,297,298],{},"{ content: [{ type: \"text\", text }] }",", you get its text parts. Anything else comes back as JSON.",[106,301,302,303,147,306,309],{},"Both tools stop at 20 000 characters by default and say how much they cut. Use ",[118,304,305],{},"--max-chars",[118,307,308],{},"maxChars"," for agents to change that, 200 000 at most. The list cuts between tools.",[110,311,313],{"id":312},"can-a-page-tool-change-things","Can a page tool change things?",[106,315,316,317,319],{},"Yes. ",[118,318,131],{}," can run anything the site wrote the tool to do, from a search to a setting change or a booking. Check the hints before calling. Don't run a consequential tool nobody asked for.",[106,321,322],{},"Hints appear next to the name as the page declares them: read-only, untrusted content, and consequential. They're the page's claims. The library doesn't check them. Treat a hint as proof? Bad bet.",[106,324,325],{},"Every call opens a fresh browser and closes it afterwards. The list shows tools present once the page has loaded and registration has settled. A tool added only after another tool runs never shows up. Changes in one tab don't carry over to the next call.",[106,327,328],{},"A tool waiting for a person to click \"confirm\" never answers. The call gives up after 60 seconds. That's a long wait for someone who isn't coming.",[110,330,332],{"id":331},"what-happens-when-a-tool-fails","What happens when a tool fails?",[106,334,335],{},"A name the page doesn't have is refused, with the available names in the response:",[160,337,339],{"className":162,"code":338,"language":164,"meta":165,"style":165},"browsers webmcp-call https:\u002F\u002Fradar.cloudflare.com\u002F book-flight\n",[118,340,341],{"__ignoreMap":165},[169,342,343,345,347,349],{"class":171,"line":172},[169,344,176],{"class":175},[169,346,275],{"class":179},[169,348,183],{"class":179},[169,350,351],{"class":179}," book-flight\n",[160,353,356],{"className":354,"code":355,"language":195,"meta":165},[193],"https:\u002F\u002Fradar.cloudflare.com\u002F has no WebMCP tool \"book-flight\". It has 6: \"set-location\", \"set-date-range\", \"navigate-to\", \"search\", \"set-theme\", \"get-current-view\". Call browsers_webmcp_tools to see them.\n",[118,357,355],{"__ignoreMap":165},[106,359,360,361,364],{},"If a page tool throws, the response includes its message as ",[118,362,363],{},"Page tool \"\u003Cname>\" failed: \u003Cits message>",".",[366,367,368],"style",{},"html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":165,"searchDepth":370,"depth":370,"links":371},2,[372,373,374,375,376],{"id":112,"depth":370,"text":113},{"id":154,"depth":370,"text":155},{"id":259,"depth":370,"text":260},{"id":312,"depth":370,"text":313},{"id":331,"depth":370,"text":332},"Ask a page through the tools it registers for agents instead of scraping it. List them, run one, and know what a call can change.","md",null,{"icon":381},"i-lucide-wand-sparkles",true,{"title":24,"description":377},"ZElxiGoLvAVCwdaX3Rt1jisrVdM7icMSG49J3Akj0-w",[386,388],{"title":20,"path":21,"stem":22,"description":387,"children":-1},"Three other ways to read one page. The hrefs the scrape dropped and the fields of a form and structured data from a prompt",{"title":28,"path":29,"stem":30,"description":389,"children":-1},"Follow links from one page and keep a slow crawl job instead of losing it. Web search through Hyperbrowser",1795526334312]