OpenAICloudflare Developer PlatformApr 15, 2026, 10:00 AM

Browser Run - Browser Run adds WebMCP support

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

Browser Run adds WebMCP support

Key Points

  • WebMCP support in Browser Run
  • Enable with lab=true on devtools/browser
  • Use navigator.modelContextTesting.executeTool()

Summary

Cloudflare Browser Run (formerly Browser Rendering) now supports WebMCP (Web Model Context Protocol), a Chrome browser API that lets AI agents discover and call typed website tools (e.g., searchFlights(), bookTicket()) instead of relying on fragile screenshot-and-click automation. This uses Chrome beta features; Cloudflare provides an experimental pool of Chrome beta instances for testing.

Key Points

  • Discover site tools with navigator.modelContextTesting.listTools().
  • Execute tools directly with navigator.modelContextTesting.executeTool() (typed parameters).
  • Some tools support human-in-the-loop confirmation for sensitive actions.
  • Enable WebMCP in Browser Run by adding lab=true to the devtools browser request; you can also set keep_alive to control session lifetime. Example request: curl -X POST "https://api.cloudflare.com/client/v4/accounts/{account_id}/browser-rendering/devtools/browser?lab=true&keep_alive=300000" -H "Authorization: Bearer {api_token}"
  • You can attach an MCP client via the Cloudflare CDP endpoint so AI agents can discover and call tools directly.

Practical notes

  • WebMCP requires Chrome beta features; use the experimental pool only for testing until the API stabilizes.
  • Tune keep_alive to manage session duration and resource usage.
  • See the WebMCP docs and Cloudflare CDP documentation for step-by-step guidance and examples.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

Browser Run — Browser RunがWebMCPをサポート

Browser RunがWebMCPをサポート

公開日: 2026-04-15

Browser Run(旧 Browser Rendering)は、Google Chromeチームの新しいブラウザAPIである WebMCP ↗(Web Model Context Protocol)をサポートするようになりました。インターネットは人間向けに作られているため、現状ではAIエージェントによるウェブ操作は信頼性が低くなりがちです。WebMCPは、サイトがAIエージェント向けに構造化されたツールを公開し、エージェントがそれらを発見して直接呼び出せるようにします。スクリーンショット→解析→クリックの遅いループではなく、searchFlights()bookTicket() のようなサイト関数を型付けされたパラメータで呼び出せるため、ブラウザ自動化が高速で信頼性の高いものになります。

WebMCPでできること

  • サイトのツールを発見する
    • navigator.modelContextTesting.listTools() を使って、WebMCP対応サイト上の利用可能なアクションを確認できます。
  • ツールを直接実行する
    • 型情報付きパラメータで navigator.modelContextTesting.executeTool() を呼び出してツールを実行できます。
  • 人間の確認が必要な操作を扱う
    • 一部のツールは、機微な操作を完了する前にユーザー確認のために一時停止します(human-in-the-loop)。

利用方法(Chrome beta が必要)

WebMCPはChromeのベータ機能を必要とします。Cloudflareでは、安定版Chromeに入る前の新機能をテストできるように、Chrome betaを実行する実験的プールを用意しています。WebMCPセッションを開始するには、/devtools/browser リクエストに lab=true を追加してください。例えば次のように実行します:

curl -X POST "https://api.cloudflare.com/client/v4/accounts/{account_id}/browser-rendering/devtools/browser?lab=true&keep_alive=300000" -H "Authorization: Bearer {api_token}"

最近ローンチしたCDPエンドポイントと組み合わせることで、AIエージェントもWebMCPを利用できます。MCPクライアントをCDP経由でBrowser Runに接続すれば、エージェントはウェブサイトのツールを直接発見して呼び出せます。たとえば、OpenCodeを介してAIエージェントが駆動するホテル予約デモでも同様の流れが示されています。

詳細な手順については、WebMCPのドキュメントを参照してください。


ご不明点があればお知らせください。