ブラウザAIエージェント向けWebMCPに関する質問にお答えします — Chrome
このページのタイトル、字幕、要約、読書メモは保存済みの AI 翻訳です。誤りが含まれる場合があります。タイムスタンプは原文と同じです。原文の字幕を開き、元の動画と照合できます。
ChromeのエンジニアがWebMCPに関する開発者の質問に答え、構造化されたHTMLフォームと決定論的なツール呼び出しがブラウザAIエージェントの確実な動作をどう支援するかを示します。
文字起こしの出典:YouTubeの手動字幕。VidleafによるAI句読点付与。元の文言とタイムスタンプのアンカーは保持されています。元の文字起こしは以下でご覧いただけます。
AI生成の要約
この動画では、「エージェントのウェブ」への移行について説明しています。これはユーザーがエージェントにタスクの実行を任せるもので、話者によればモバイルウェブへの移行と同規模、あるいはそれ以上だといいます。開発者には、発見(robot.txt、サイトマップ、llms.txt)、可読性(クリーンなHTML、多くのエージェントはJavaScriptを実行できないことへの認識、より少ないトークンで済むMarkdown版を指すコンテンツネゴシエーション)、そして使いやすさを通じて、製品をエージェントが利用できるようにすることが求められています。現在のほとんどのエージェントは、ビジョンモデルによるスクリーンショット、DOM、アクセシビリティツリーといった操作によって動作するため、明確なレイアウトと適切なアクセシビリティマークアップが役立ち、ユーザーにとって良いものはエージェントにとっても良いものとなります。大きなコンテキストはエージェントを遅くし信頼性を下げるため、チームはWebMCPに取り組んでおり、開発者がエージェントから直接呼び出せるツールを登録できるようにしています。Flight Searchのデモでは、searchFlightsツールと動的に登録されるsetFiltersツールが示され、エージェントは各呼び出しの前に許可を求め、ツールは既存のフォーム向けの宣言的アプローチ、または命令型のJavaScript APIで登録できます。WebMCPはChromeのオリジントライアルで提供されているウェブ標準の提案であり、オプトインかつ実験的で、Microsoft、Google、その他のコミュニティメンバーによる共同の取り組みとして始まりました。ChromeのGeminiはこれを試験的に導入しており、CloudflareのBrowser Runはこれをサポートし自社サイトで本番運用しており、BraveはエージェントLeoで試験的に導入しており、OpenAIは最近エージェントにWebMCPサポートを組み込みました。エージェントはChrome拡張機能として構築でき、コンテンツスクリプトの権限を通じてツールを取得または実行でき、拡張機能からツールを登録することもできます。安全性については、ユーザーがツールの実行を許可または拒否する必要があり、開発者には、ツールが読み取り専用でありながら機密情報を明らかにしないか、またツールがどれほど破壊的で可逆的かを検討することが推奨されています。デモでは、LEDグリッド上で絵文字を選び、その選択をFirebase Realtime Databaseに保存し、画像のバイト配列に変換して、ディスプレイがリッスンするMQTTサーバーに送信する様子が示されています。話者は、ウェブは存続し人々は引き続きブラウジングするだろうと考えており、エージェントは特に摩擦の除去やワークフローの自動化に優れていると述べ、長時間実行されるツールの進捗表示といった機能要望にも言及しています。
文字起こしから生成されました。リンクされた箇所は元の動画と照合してください。
タイムスタンプ付きの章の要約
エージェントのウェブと、ウェブが進化しなければならない理由
エージェントによる支援からエージェントによる実行への移行
- [0:10] 現在、より多くのユーザーが世界についての質問や完了したいタスクのためにエージェントを利用しています。
- [0:17] この変化は、モバイルウェブへの移行と同規模、あるいはそれ以上です。
- [1:12] 当初、ユーザーはエージェントに質問をしたり、テキスト要約を依頼したり、メールを書かせたりしていました。
- [1:24] ユーザーは今や、エージェントがそうしたタスクを手伝うだけでなく、例えばユーザーの代わりにメールを送信するなど、一部のタスクを実際に実行することを期待しています。
エージェント向けの開発者向け統合ポイント
- [1:40] 例えば、メールを送信する製品を持つ開発者は、エージェントがその製品を使ってメールを送信できるようにする必要があります。
- [1:47] エージェントはユーザー自身ではなくユーザーが使うツールであるため、製品にはエージェントへの統合ポイントが必要です。
- [1:58] 開発者は、ユーザーがどのインターフェースを使っていても、その製品を利用できるようにする必要があります。
エージェントウェブの定義
AIエージェント向けに製品を発見可能かつ利用可能にする
robots.txt、サイトマップ、llms.txtによる発見
- [2:33] 発見とは、エージェントがあなたの製品の存在と機能をどのように知るかということであり、検索向けに行うことと似ています。
- [2:46] robots.txtが存在することを確認し、適切なサイトマップを提供し、さらにllms.txtのような新しい選択肢も利用できます。
- [2:54] llms.txtはrobots.txtのような隠しファイルで、標準的な場所に置かれ、ウェブサイトのコンテンツの多くを含みます。
- [3:05] エージェントがサイト全体をスキャンする代わりに、一か所ですべてを見つけられます。
クリーンなHTMLとJavaScriptサポートによる理解
- [3:11] 発見の後、エージェントはコンテンツを読み取って理解する必要があり、llms.txtもそこに少し関わります。
- [3:25] エージェントがサイトのHTMLを読む場合、HTMLはクリーンで非常に使いやすい構造であるべきです。
- [3:33] 今日の多くのエージェントはJavaScriptを実行できないため、コンテンツのない完全なクライアントサイドのページは難しい場合がありますが、対応できるものもあります。
- [3:43] これは検索の進化に似ており、Google検索は以前サイト向けにJavaScriptを実行せず、JavaScriptを多用するアプリケーションの増加に伴って進化しました。
Markdown代替版によるコンテンツネゴシエーション
- [3:57] コンテンツネゴシエーションでは、訪問者がエージェントであると分かったとき、同等のMarkdown版を指すヘッダーやメタタグを追加できます。
- [4:09] エージェントはMarkdownを好みます。一般的にHTMLよりトークン数が少なくて済むため、エージェントはより良い働きができます。
発見と理解を超えたユーザビリティ
- [4:15] ユーザビリティの部分は、エージェントがあなたの製品の存在を知り、そのコンテンツを理解することを超えて、実際にそれを使えるようになることまで含まれます。
ウェブサイトをエージェントフレンドリーにする
スクリーンショットとビジョンモデルによる操作
- [4:25] 現在、ほとんどのエージェントは操作を用いて、ユーザーがウェブサイトをどのように使うかを模倣しています。
- [4:32] エージェントはページのスクリーンショットを撮り、それをビジョンモデルに通して、そのページが何をするのかを理解します。
明確なレイアウトとよく構造化されたHTML
- [4:40] 開発者はレイアウトがエージェントにとって明確であることを確認すべきです。ボタンらしく見えるボタンは、より理解されやすいからです。
- [4:55] HTMLはよく構造化されているべきです。ボタンが関連するフォームタグの中に配置されていると、その関係がエージェントに明確に伝わりますが、フォームの外にあるボタンはエージェントを苦しめます。
アクセシビリティマークアップとユーザー共通の利点
- [5:18] エージェントはアクセシビリティツリーを読むことができるため、適切なアクセシビリティマークアップはエージェントがページを理解する助けになります。
- [5:29] これらの実践はユーザーにとって良いものであり、ユーザーにとって良いことはエージェントがウェブサイトを理解するうえでも良いことです。
WebMCPとコンテキストの削減
AIエージェント向けのWebMCPツール
WebMCPツールの登録と利点
- [6:11] 代わりにサイト開発者は、エージェントが直接利用できるWebMCPというAPI向けのツールを提供できます。
- [6:22] すべてのコンテンツを読んだり、DOMを理解しようとしたり、スクリーンショットを撮ったりする代わりに、エージェントはそれらのツールを呼び出すだけでよく、時間もトークンも少なく済み、より信頼性が高まります。
- [6:33] 適切な説明とパラメータを備えた適切なツールセットを提供することで、開発者はエージェントに自分のページや製品の使い方を導くことができます。
フライト検索デモの設定
- [6:52] デモは左側がフライト検索製品で、右側がチームが作成したサンプル拡張機能で、Chrome内のGeminiのようなエージェントを模倣しています。
- [7:23] このサイトはWebMCPツールを登録しており、このページではsearchFlightsという一つのツールがあります。
エージェントによるフライト検索と許可の流れ
WebMCPツールの登録とエージェントによるフライト絞り込み
宣言型と命令型のWebMCP API
- [8:27] ツールはJavaScript APIに加え、要素を宣言的にマークアップするためのDOMサポートを通じて登録されます。
- [8:34] WebMCPの宣言型ツールでは、既存のWebフォームに特別な属性を追加して、エージェントが使えるツールにできます。
- [8:44] WebMCPには命令型のJavaScriptベースのAPIもあり、デモではこちらを使用しています。
- [9:06] 話者は選択が製品次第だと述べており、レガシー製品や自分で書いたコードの場合、特にフォームが既に存在するなら、宣言型のアプローチの方がはるかに速く構築できることがあります。
ツールの動的な登録と登録解除
- [9:25] WebMCPではツールを動的に登録・登録解除でき、このケースでは検索が行われた後に新しいツールが登録されました。
エージェントがフライト検索のためにsetFiltersを呼び出す
- [9:38] 800ドル未満の直行便のみを表示するよう求められると、エージェントは少し考え、フィルター設定を変更するsetFiltersというツールの呼び出しを求めます。
- [9:59] ユーザーが「許可」と言うと、結果には800ドル未満のフライトが表示され、直行便フィルターもクリックされています。
- [10:09] このケースでは、一つのプロンプトが一つのツール呼び出しにつながり、二つ目のプロンプトが別のツール呼び出しにつながりましたが、おそらくすべてを一度のプロンプトで行うこともできたでしょう。
多様なユーザー行動に合わせたツールの設計
- [10:19] WebMCPツールを設計する際、ユーザーの行動は変わり得ます。あるユーザーはニューヨークへのフライト予約を依頼し、エージェントが出発地や日付を確認する必要があるかもしれませんが、別のユーザーはすべてのリクエストを一度に伝えるかもしれません。
デモ:WebMCPエージェントによるフライト予約
フライト検索プロンプトとツールの検出
- [10:51] デモはエージェントとの新しい会話を開始し、ロンドンからニューヨークへのフライトを来週の月曜日に出発し、一週間後に戻る、乗客一名、直行便のみで800ドル未満という条件で尋ねます。
- [11:19] エージェントは考え、進める前にsearchFlightsツールを呼び出す許可を求めます。
- [11:24] エージェントは新しいツールがあることを自動的に示し、フィルタリングしたいと考え、同じプロンプト内でも新しいツールを発見できることを示唆します。
承認後のフィルター適用
- [11:39] ユーザーがはいと答えると、エージェントはツールを呼び出し、以前と同様にフィルターを提供します。
現在のWebMCPエージェントサポート
- [11:46] 現在どのエージェントがWebMCPをサポートしているかと尋ねられると、話者は拡張機能を挙げ、それはデモとして素晴らしいと説明されます。
WebMCPの採用と標準化
オリジントライアルの可用性と開発者のオプトイン
- [11:59] WebMCPは現在Chromeのオリジントライアル実験にあるウェブ標準の提案です。
- [12:07] どのウェブサイト開発者もオリジントライアルにオプトインできますが、オプトインするまでこの機能は利用できません。
- [12:18] 開発者はChromeのフラグをオンにすることで自身の環境で試せますが、ユーザーに利用可能にするにはオリジントライアルに参加する必要があります。
- [12:31] ウェブサイト開発者がオリジントライアルに参加すると、ユーザーはそれを利用可能にするために何もする必要がありません。
実験的ステータスとフィードバックの目標
- [12:39] このAPIはまだ初期段階であり、オリジントライアルは実験的であることを意味します。
- [12:44] チームは現在、APIを目的に適合させ、良い市場適合性を見つけるために、開発者に試してフィードバックを提供してもらうことを求めています。
WebMCPを試しているエージェントと製品
- [12:59] ChromeのGeminiは、I/Oで発表されたように、WebMCPを試してきました。
- [13:07] CloudflareのBrowser RunはWebMCPをサポートしており、すでに彼らのサイトで本番稼働しています。
- [13:16] BraveはLeoと呼ばれる自社のエージェントでWebMCPを試してきました。
- [13:23] OpenAIは最近、彼らのエージェントにWebMCPサポートを導入しました。
- [13:33] エコシステムにとってはまだ非常に初期段階ですが、開発者からの関心はすでに高く、多くのウェブサイトがWebMCPを試しており、エージェント側にも関心があり、双方が成長すべきです。
標準化の起源とコミュニティの関与
Chrome拡張機能とWebMCPの統合
コンテンツスクリプトを通じたWebMCPの利用
- [14:32] エージェントは、ページと対話するChrome拡張機能として構築できます。
- [14:44] 拡張機能は、ページからツールを取得したり、ページ上でツールを実行したりできます。
- [14:51] 現時点では、拡張機能専用のAPIがまだないため、拡張機能はコンテンツスクリプトの権限を使ってこれを行います。
- [14:57] コンテンツスクリプトは、実際にページで利用可能なAPIを呼び出します。
拡張機能からのツールの登録
エージェントツールの権限と安全性
ツール実行に対するユーザー承認プロンプト
- [15:19] エージェントがツールの実行を要求すると、ユーザーは実行を許可または拒否しなければなりません。
- [15:24] このプロンプトは、おそらくエージェントを構築する人が行うUX上の判断です。
- [15:31] この場合、プロンプトを出すかどうかの判断は拡張機能自体から来ています。
- [15:35] 開発者はおそらく、権限の設計についてよく考える必要があるでしょう。
読み取り専用ツールと機密情報
- [15:46] 一部のツールは読み取り専用で、その製品上の何も変更しません。
- [15:52] 一部の読み取り専用ツールは機密性の高いユーザー情報を明らかにする可能性があり、サイトから情報を取得するだけの読み取り専用ツールよりも危険に感じられます。
- [16:04] エージェントは複数のページやさまざまなものにアクセスする可能性があるため、開発者はツールが危険かどうか、あるいはユーザーに関する危険な情報を明かすかどうかを常に考慮すべきです。
- [16:17] そのような場合、開発者はユーザーに許可を求めたくなるかもしれません。
書き込みツールの権限におけるニュアンス
- [16:19] 書き込みツールについては常に許可を求めるべきだと感じるかもしれませんが、そこにはより多くのニュアンスがあります。
- [16:29] 開発者はツールがどれほど破壊的で、どれほど可逆的かを考慮すべきです。
- [16:34] フライトを検索するツールはおそらくそれほど悪くなく、大きな影響もないでしょう。
- [16:41] 支払いを行うツールについては、支払いを行う前にユーザーに許可を求めることを確実にしたいかもしれません。
APIのヒントとエージェントの判断
WebMCPで制御されたLED絵文字ディスプレイ
ビデオ通話用の絵文字ディスプレイ
- [17:53] 制作者はオフィスで自分の後ろにI/O用のLEDディスプレイを置いており、一緒に通話に参加する人はおそらくそれを見ることになります。
- [17:59] ウェブサイトでは訪問者が絵文字を選ぶことができ、それが制作者の後ろのLEDグリッドに表示されます。
ディスプレイアプリで公開されているWebMCPツール
- [18:18] 制作者はディスプレイアプリケーションでWebMCPツールを公開しているため、エージェントにLEDグリッドに表示されているものを変更するよう依頼できます。
- [18:40] ゲストはエージェントに、晴れた日のピクニックを思い出させる絵文字を選ぶよう依頼します。
繰り返しのツール呼び出しによるエージェントの絵文字検索
- [18:56] エージェントは絵文字を検索し、内部でさまざまなキーワードを試しながらツールを複数回呼び出します。
- [19:17] リクエストが許可された後、エージェントはピクニックバスケットの絵文字を返し、制作者はそれは試したことがなかったと述べます。
FirebaseとMQTTの配信パイプライン
Webとエージェントエコシステムの未来
Webブラウジングとエージェントによる自動化
- [20:37] 話者はWebは存続し続け、楽しく興味深いものであるため人々は引き続きブラウジングするだろうと考えています。
- [20:49] エージェントが常にブラウジングを置き換えるとは想定されておらず、特にユーザーフローの摩擦を取り除き、ワークフローを自動化するのが得意です。
スキルと進捗によるWebMCPの拡張
- [21:04] WebMCPがツールを公開するだけでなく、話者はより大きなタスクを実行するためにツールを組み合わせるレシピやスキルをエージェントに与えられることを提案しています。
- [21:24] 話者は可能なことのほんの表面をかすっているにすぎないと述べ、WebMCPに対する多くの機能リクエストがあることに言及しています。
- [21:31] リクエストされた機能の一つは、数分かかるファイルダウンロードなど、長時間実行されるツールの進捗を示すことです。
- [21:41] 現状ではページがダウンロードの進捗をエージェントに伝える方法がなく、話者はこれを非常に興味深い可能性があると考えています。
締めくくりの言葉と質問の呼びかけ
- [21:54] ホストはアンドレの参加に感謝し、視聴者にさらなる質問をコメント欄に残すよう促し、それらは将来の動画で回答される可能性があると述べています。
冒頭 3 段落の二言語対訳プレビュー · 利用枠の消費なし
保存済みの日本語訳と英語原文の冒頭 3 段落を並べて確認できます(利用枠は消費しません):
おかえりなさい。AIは私たちの周りの世界を変えており、特にWebにとって、これは非常に興味深い変化の時期だと思います。未来がどうなるかは完全には明らかではありませんが、世界についての質問や完了すべきタスクがあるとき、より多くのユーザーがエージェントを利用するようになっていることは明らかです。私たちが見ている変化は、ユーザーがモバイルWebにアクセスし始めたときの変化と同規模か、それ以上だと言ってもよいでしょう。そうしたことを踏まえ、今日はChromeチームのアンドレと対談し、彼が私たちの進む先をどう見ているかについていくつか質問しました。
Welcome back. AI is changing the world around us, and for the web in particular, I think this is a really interesting time of change. It's not entirely clear what the future will look like, but it's clear that more users are now turning to agents when they have a question about the world or a task they need to complete. It's fair to say that the change we're seeing is on the same scale as, if not greater than, the change when users started accessing the mobile web. With all of that in mind, today I sat down with Andre on the Chrome team and I asked him some questions about where he sees us heading.
開発者モード アンドレ、ようこそ。-ありがとうございます。-もちろんです、来てくれて嬉しいです。オンラインでいくつか質問を募集しました。Redditに投稿し、他の場所でも尋ねたと思います。人々が抱いていた一般的な感情や未回答の質問は、なぜWebは進化する必要があるのか、というものでした。人々はWebが好きです。今あるものに満足しています。今私たちが考えていることと、将来Webをどこへ動かす必要があると考えているかについて少し話してもらえますか。もちろんです。ユーザーはますますエージェントを使うようになっています。
DEVELOPER MODE Welcome, Andre. -Thank you very much. -Of course, great to have you. We asked online for some questions. I think we posted on Reddit and asked elsewhere as well. I think a general sentiment or unanswered question that people had was, why does the web even need to evolve? People like the web. They're happy with what we have. Could you talk a little bit about what we're thinking about right now and where we think we might need to move the web in the future. Of course, so users have been using agents more and more.
-そうですね。-例えば、時にはGeminiだったり、最近ではChrome内のGeminiのようなものもあります。当初、ユーザーは「質問してもいいですか?」とか「テキストを要約してくれますか?」とか「メールを書いてくれますか?」という意味合いで使うことが多かったのです。しかし、ユーザーの期待は変わりつつあります。今やユーザーは、エージェントがそうしたタスクを手伝うだけでなく、実際にいくつかを実行してくれることを期待しています。もはやエージェントにメールを書いてもらうだけでなく、エージェントに代わりにメールを送ってもらうことでもあるのです。
-Yeah. -Like, sometimes it's Gemini, or more recently, things like Gemini in Chrome. At the beginning, users were using it more in the sense of "Oh, can I ask a question?" or "Can you summarize the text?" or "Can you author an email for me?" However, the user expectation is changing. Users now expect agents not only to help them with those tasks but actually to executing some of them. It's not just about asking the agents to write an email anymore; it's about also asking the agent to send the email on your behalf.
[0:00] おかえりなさい。AIは私たちの周りの世界を変えており、特にWebにとって、これは非常に興味深い変化の時期だと思います。未来がどうなるかは完全には明らかではありませんが、世界についての質問や完了すべきタスクがあるとき、より多くのユーザーがエージェントを利用するようになっていることは明らかです。私たちが見ている変化は、ユーザーがモバイルWebにアクセスし始めたときの変化と同規模か、それ以上だと言ってもよいでしょう。そうしたことを踏まえ、今日はChromeチームのアンドレと対談し、彼が私たちの進む先をどう見ているかについていくつか質問しました。
[0:34] 開発者モード アンドレ、ようこそ。-ありがとうございます。-もちろんです、来てくれて嬉しいです。オンラインでいくつか質問を募集しました。Redditに投稿し、他の場所でも尋ねたと思います。人々が抱いていた一般的な感情や未回答の質問は、なぜWebは進化する必要があるのか、というものでした。人々はWebが好きです。今あるものに満足しています。今私たちが考えていることと、将来Webをどこへ動かす必要があると考えているかについて少し話してもらえますか。もちろんです。ユーザーはますますエージェントを使うようになっています。
[1:05] -そうですね。-例えば、時にはGeminiだったり、最近ではChrome内のGeminiのようなものもあります。当初、ユーザーは「質問してもいいですか?」とか「テキストを要約してくれますか?」とか「メールを書いてくれますか?」という意味合いで使うことが多かったのです。しかし、ユーザーの期待は変わりつつあります。今やユーザーは、エージェントがそうしたタスクを手伝うだけでなく、実際にいくつかを実行してくれることを期待しています。もはやエージェントにメールを書いてもらうだけでなく、エージェントに代わりにメールを送ってもらうことでもあるのです。
[1:37] そういうことが変わってきているのです。開発者として、例えばメールを送信する製品をお持ちなら、エージェントがその製品を使ってメールを送れるようにしたいと考えるでしょう。そうしたエージェントとの統合ポイントが必要です。なぜなら、繰り返しになりますが、エージェントがユーザーになるのではなく、エージェントはユーザーがあなたの製品を使うために利用するツールなのですから。開発者としては、ユーザーがどんなインターフェースを使っていても、あなたの製品を使えるようにしたいと考えるはずです。ええ。より詳しく話を進める前に、あなたが取り組んでいることと、それがGoogleや業界全体が今行っている幅広い取り組みの中でどう位置づけられるかを説明していただけますか?
[2:15] 私たちが目にしていること、そしてこのエージェント利用の増加を私たちが呼んでいるのは「エージェントのウェブ」です。開発者としては、あなたの製品がエージェントによって利用可能であることを確実にしたいと考えるでしょう。これは三つの柱に分けられます。一つは発見です。発見とは、エージェントがあなたの製品の存在をどう知るか、エージェントがあなたの製品が何をするかをどう知るかということで、例えば検索向けに行うこととよく似ています。
[2:46] robot.txtが存在することを確実にし、良いサイトマップを用意することを考えられますが、llms.txtのような新しいものもあります。ええ、これはrobots.txtのような隠しファイルです。標準的な場所に置かれるファイルで、あなたのウェブサイトのコンテンツの多くを含んでいます。エージェントがすべてのためにサイト全体を見る代わりに、一か所ですべてを見つけられるのです。なるほど。ええ。そして理解の部分があります。エージェントがあなたのサイトに来て、それが何をするかを知ったら、次にコンテンツを読み、理解する必要があります。
[3:19] ええ。Llms.txtも少し関係しています。すべてのコンテンツが含まれているからです。しかし、今考えてみると、エージェントがあなたのサイトのHTMLを読む場合、HTMLが非常に使いやすい構造でクリーンであることを確認したいですよね。それは可能です。例えば、今日の多くのエージェントはJavaScriptを実行できません。完全にクライアントサイドのランダムなページでコンテンツがない場合、エージェントは苦戦するかもしれません。他のエージェントはできます。これは検索全般の進化に似ていると感じます。私の理解では、Google検索は以前はサイトのJavaScriptを実行していませんでしたが、JavaScriptを多用するアプリケーションが増えるにつれて、それが変わって進化したのだと思います。
[3:57] コンテンツネゴシエーションのようなことも考えられます。これは、エージェントがあなたのページに来て、それがエージェントだとわかったときに、ヘッダーやメタタグを追加して「ねえ、ここに読むための同等のMarkdownがありますよ」と伝えられるものです。エージェントはMarkdownを使うのが好きだからです。一般的にHTMLよりトークンが少なくて済むので、エージェントはそこでよりうまくやれます。-最後に、使いやすさの部分です。-ええ。エージェントがあなたの製品が存在することを知り、それが何をするか、コンテンツを理解するだけでなく、それを使えるようにすることも重要です。現在、ほとんどのエージェントがやっているのは、私たちがアクチュエーションと呼ぶもので、ユーザーがあなたのウェブサイトをどう使うかをエミュレートしようとすることです。
[4:32] つまり、エージェントがページのスクリーンショットを撮り、それをビジョンモデルに通して、何をするのか理解しようとします。その意味で、開発者としては、レイアウトがエージェントにとって明確であることを確認したいです。例えば、ボタンがボタンのように見えれば、エージェントはそれがボタンだとわかりますが、ボタンのように見えなければ、エージェントが何をすべきか理解する可能性は低くなります。レイアウトが明確であることを確認したいです。また、HTMLがよく構造化されていることも確認したいです。つまり、例えばフォームに関連するボタンがあるとします。
[5:03] ボタンがフォームタグの中にあれば、その二つが関連していることがエージェントに明確にわかります。そうすべきなのは明らかだと思えますが、そうしていないウェブサイトがたくさんあるように感じます。まさにその通りです。ボタンがフォームの外にあると、エージェントは苦戦します。最後に、アクセシビリティがあります。エージェントはアクセシビリティツリーを読めるので、適切なアクセシビリティマークアップがあれば、エージェントがあなたのページを理解するのにも実際に役立ちます。興味深いことに、私たちが話していることはすべて、ユーザーにとっても良いものです。つまり、ユーザーにとって良いものは、エージェントがあなたのウェブサイトを理解するのにも良いのです。
[5:38] しかし、それだけではありません。私たちが取り組んでいるものの一つにWebMCPがあります。WebMCPの課題は、スクリーンショット、DOM、アクセシビリティツリーが、エージェントが必要とする多くのコンテキストになり得るということです。そして、コンテキストが多ければ多いほど、時間がかかります。コンテキストが大きいほど、エージェントが回答するまでの時間が長くなります。また、エージェントの信頼性も低下します。エージェントが何かを間違えたり、間違ったボタンをクリックしたり、誤解したりする可能性が高まります。
[6:11] 代わりにできることは、サイトの開発者として、WebMCPというAPIのためのツールを提供できるということです。エージェントはそれらのツールを直接使用できます。すべてのコンテンツを読み、DOMを理解しようとし、スクリーンショットを撮る代わりに、それらのツールを呼び出すだけで済みます。そうすれば、時間もトークンも少なくなり、より信頼性が高くなります。ええ。開発者として、これにより利点が得られます。適切なツールを適切な説明と適切なパラメータで提供すれば、エージェントがあなたのページをどのように使用すべきかを導くことができます。そうすれば、エージェントがあなたの製品をどのように使用するかを導くことができます。
[6:44] なるほど。WebMCPが実際にどのように機能するかを示すデモはありますか? -はい、もちろんです。 -わかりました、素晴らしい。デモに移りましょう。 -これはフライト検索のデモです。 -ええ。これをサイトで開きます。Google Flightsや、お使いのフライト予約サイトにいることを想像してください。ええ、左側にこのフライト検索製品があります。右側には、チームが構築した拡張機能の例があります。 -拡張機能についてはよくご存じですね。 -ええ。この拡張機能はエージェントを模倣しているので、ChromeのGeminiや、ユーザーがインストールした任意のエージェントである可能性があります。
[7:19] そして、このサイトは何らかの方法でWebMCPを通じていくつかのツールを登録していると推測します。はい、このサイトはいくつかのWebMCPツールを登録しています。このページの場合、searchFlightsという一つのツールがあります。なるほど。ええ。例えば、エージェントに「来週の月曜日にロンドンからニューヨークへのフライトを、一週間後に戻る便で、乗客一人で検索して」と伝えたとしましょう。エージェントは今考えていますが、searchFlightsツールを呼び出せるはずで、「フライトを検索してもいいですか?」と許可を求めています。
[8:00] 許可を押します。これで、エージェントが来週の月曜日、つまり録画時の31日からロンドンからニューヨークへのフライトを検索し、一週間後に戻る便を検索したことがわかります。まさに求めていた通りです。さて、このページに移動すると、別のツールが登録されました。 -はい。 -それは興味深いですね。これらのツールはどのように登録されているのですか?JavaScript APIがあり、さらにいくつかの要素を宣言的にマークアップするためのDOMサポートもあると思います。
[8:34] WebMCPには宣言型ツールがあり、既存のWebフォームにマークアップを追加できます。つまり、それらのフォームに特別な属性を追加すると、エージェントが使用できるツールになります。また、JavaScriptベースの命令型APIもあります。このデモでは、命令型APIを使用しています。ええ、そうですね、命令型のものはいつも最も魅力的に思えます。Webの観点からすると、宣言型のものがあるのは良いことだと思います。それをサポートするのは素晴らしいことだと思いますが、ええ、私はいつもJavaScriptの方に傾いている気がします。
[9:06] ええ、それは製品によって大きく異なると思います。時にはレガシー製品であったり、自分でコードを書いていたりすると、構築がずっと速くなることもあります。すでにフォームがあれば簡単です。その通りです。この新しいページにいるので、新しいツールが登録されたということですか?はい、それがWebMCPの興味深い点の一つで、ツールを動的に登録したり登録解除したりできるのです。この場合、検索が行われると、新しいツールが登録されました。エージェントに「直行便だけを、そうですね、800ドル以下で表示して」と言うと、そのように言えば、少し考え込むでしょう。
[9:54] setFiltersというツールを呼び出すように求められています。これはフィルター設定を変更するものです。「許可」と言うと、800ドル以下のフライトが表示され、さらに直行便フィルターもクリックされました。素晴らしい。この場合、一つのプロンプトを書くとツールが呼ばれ、また別のプロンプトを書くとツールが呼ばれました。おそらく、それをすべて一つのワンショットプロンプトとして行うこともできるでしょう。WebMCPツールを設計する際に考えるべき興味深い点は、ユーザーの行動が変わりうるということです。あるユーザーは「ああ、ニューヨークへのフライトを予約したい」と言い、エージェントは「わかりました、どちらから来られて、どの日付ですか?」と確認する必要があるかもしれません。
[10:35] ユーザーの中には、おっしゃるようにすべてを一度に伝える人もいるでしょう。デモとしてできるのは、検索ページに戻って、エージェントとの新しい会話を始め、「ロンドンからニューヨークへのフライトを予約したいです。次の月曜日に出発し、一週間後に戻り、乗客は一人です」と言ってみることです。
[11:08] 直行便だけを800ドル以下で表示して。」これで進むように伝えます。また考え込んで、searchFlightsツールを呼び出してもよいか尋ねています。-ええ。-呼び出しました。今度は自動的に「わかりました、新しいツールがあり、フィルターをかけたい...」と言っています。この場合、同じプロンプト内でも新しいツールを発見できるということですね。-はい。-ええ。
[11:39] そして、はいと答えると、呼び出しが行われ、以前と同じようにフィルターが提供されます。素晴らしいですね。では、現在どのエージェントがWebMCPをサポートしているのでしょうか?もちろん、デモとして便利なこの拡張機能がありますが、ユーザーが実際に使う可能性のある本物のエージェントでWebMCPをサポートしているものはあるのでしょうか?良い質問ですね。WebMCPはウェブ標準の提案です。はい。そして現在、Chromeのオリジントライアル実験にあります。つまり、ウェブサイト開発者は誰でもオリジントライアルにオプトインしてこれを使えますが、オプトインするまで利用できません。
[12:15] はい、オプトインするまで利用できません。ご自身の開発環境で試したい場合は、Chromeを開いてフラグをオンにすれば動作します。ウェブサイトのユーザーに利用可能にしたい場合は、オリジントライアルに参加する必要があります。しかし、ウェブサイト開発者としてオリジントライアルに参加すれば、ユーザーは何もする必要がありません。ユーザーに利用可能になります。はい、そういうことです。このAPIはまだ初期段階であることを覚えておくと良いでしょう。オリジントライアルとは実験的であるという意味で、今まさに求めているのは開発者に試してもらい、フィードバックを提供してもらうことで、APIが目的に適合していることを確認できるようにすることです。APIに本当に良い市場適合性を見つけようとすることです。
[12:56] なるほど。はい。では、エージェントに関しては、ChromeのGeminiがWebMCPを実験してきました。-それはI/Oで発表しましたね。-はい。また、CloudflareにはBrowser Runという製品があり、-これもWebMCPをサポートしています。-はい。それはすでに彼らのサイトで本番稼働しています。BraveはLeoという独自のエージェントでWebMCPを実験してきました。なるほど。最近、OpenAIはWebMCPサポートを彼らのエージェントに導入しました。
[13:28] はい、今週の初めにこの録画を見ました。とても最近のニュースでしたね。はい、エコシステムにとってはまだ非常に初期段階ですが、開発者からの関心が非常に高いことがすでに見えています。多くのウェブサイトがすでにWebMCPを実験しています。エージェント側でも多くの関心が見られ、これは重要です。両側が成長することを望んでいます。はい、なるほど。そして、これが標準化が進められている標準であるが初期段階であることについて少し触れましたね。標準化の話と、その作業に関わっているブラウザについて話していただけますか?
[14:03] ええ、標準規格そのものは、もちろん他のウェブ標準と同じように、コミュニティからの関与がたくさんあります。標準規格自体はMicrosoft、Google、そしてコミュニティの他のメンバーによって始められました。一種の共同作業でした。今では、さまざまな背景や異なる業界の人々が参加して、このパックに貢献しています。素晴らしいですね。Chrome拡張機能はこれを使えますか?つまり、デモからChrome拡張機能がこれを使えることがわかると思います。エージェントをChrome拡張機能として構築し、ページと対話できるのです。
[14:37] Chrome拡張機能がWebMCPを使う他の方法はありますか?はい、その通りです。ご覧になっているのは、拡張機能がそれを使う一つの方法です。ページからツールを取得したり、ページ上でツールを実行したりできます。しかし、拡張機能でそれを行う方法は、今のところコンテンツスクリプトの権限を使うことです。拡張機能専用のAPIはまだありません。やり方としては、コンテンツスクリプトを使って、実際にページで利用可能なAPIを呼び出します。なるほど。ええ。つまり、登録されたツールも拡張機能から利用可能ということですね。
[15:07] ツールを取得して実行できるのと同じように、ツールを登録することもできます。拡張機能が、別のエージェントが呼び出せるツールを登録することも可能です。ええ、そして画面上でも、ツールを実行するよう求められたときに、そのツールの実行を許可するか許可しないかを選ばなければならないのがわかります。これはおそらく、エージェントを構築する人がユーザーにプロンプトを出すときに決めるUX上の判断にすぎないのでしょう。ええ、この場合、それはこの拡張機能が下した判断です。開発者としては、おそらく少し考えるべきだと思います。
[15:40] ええ。権限について考えるべきシナリオはおそらく二つあります。一つ目は、一部のツールは読み取り専用で、製品上で実際には何も変更しないということです。しかし、中にはユーザーの機密情報を明らかにするものもあるかもしれません。それは、サイトから情報を取得するだけの読み取り専用ツールよりも危険に感じられます。エージェントが複数のページや複数のものにアクセスできると考えるなら、開発者としては常に考慮すべきでしょう。これは危険なのか?と。
[16:11] これは私のユーザーに関する危険な情報を明らかにしていますか?それとも何か別のことについてですか?もしそうなら、ユーザーに許可を求めることを検討したほうがよいかもしれません。そしてもう一つ考えるべきことは、書き込みツールについては、常に許可を求めるべきだと感じるかもしれませんが、実はそこにはもっと微妙なニュアンスがあります。そのツールがどれほど破壊的で、どれほど元に戻せるかを考えるべきです。たとえば、フライトを検索するツールは、おそらくそれほど悪くはありません。大きな影響を与えることはおそらくないでしょう。しかし、たとえば支払いを受け付けるツールであれば―― -ええ。 -そうですよね?
[16:45] 支払いを受け付ける前に、ユーザーに許可を求めるようにしたほうがよいかもしれません。エージェントはツールを実行することの意味を推測しなければならないのでしょうか?それとも、ウェブサイトがそれを示す方法はあるのでしょうか?それはAPIの一部です。すでに存在する部分もあれば、まだ進化中の部分もあります。すでにエージェントにヒントを提供できます。たとえば、読み取り専用のヒントがあります。そんなものがすでにあるとは知りませんでした。それは基本的に、このツールは変更を加えず、変化をもたらす影響もなく、ページに何も書き込まず、 -情報を返すだけだとエージェントに伝えます。 -ええ。
[17:16] そうすれば、エージェントはそうしたヒントのいくつかを使って、プロンプトを表示するかどうかを判断できます。エージェントは一般に、意図やツールの説明から判断して、自分で決めることもできます。この場合、それが行っていることです。エージェントは実際にツールの説明を見て、「許可を求めるべきかどうか」を判断しています。ええ、納得です。動画全体を通して、これがテーブルの上にあったことに気づきました。あなたが明らかにメイカーで、ハードウェアをいじるのが好きな方だということも分かります。
[17:47] これが全部そろっていますね。これが何をするのか少し話していただけますか?ええ、もちろんです。これはI/Oのためにオフィスに置いていたものです。私と通話に参加する人は、おそらくこれを見るでしょう。私の後ろにこのLEDがあり、このウェブサイトがあって、そこに行くと絵文字を選べて、それが私の後ろに表示されます。これを宇宙人に変えると、実際に絵文字で宇宙人が表示されます。でも、これがWebMCPとどう関係するのでしょうか?関係するのは――私たちの拡張機能に戻りましょう――実はこの中にWebMCPツールを公開しているのです。
[18:22] いいですね。つまり、エージェントに頼んで、私のLEDグリッドに表示されているものを何でも変更できるということです。エージェントに表示してほしいものはありますか?ええ、最近とても晴れているので、夏や日差しの中でピクニックをすることを思い出させる何かがいいかもしれません。日差しの中でピクニックを思い出させる絵文字を選んで。
[18:55] では、それをやってみましょう。考え中です。絵文字を検索しています。絵文字検索もありますね。実際にはツールを何度も呼び出しています。内部では、絵文字を検索するために異なるキーワードを試しているからです。なるほど、たとえば雲やピクニックバスケットなどを検索するのでしょうか。ええ、見つかりましたね。許可して、何が出てくるか見てみましょう。はい、ピクニックバスケットです。正直、これは今まで試したことがありませんでした。
[19:25] 何を検索するか当てられたのは運が良かったのでしょうね。先ほど、これはインターネット経由で行われ、その後 MQTT コマンドを送信するとおっしゃっていましたが、全体としてどう動いているのですか。はい、これは Firebase Realtime Database を使っています。なるほど。ウェブアプリケーションが Firebase Realtime Database に保存します。そして、その Realtime Database から情報を取り出し、絵文字を実際のバイト配列に画像として変換し、MQTT サーバーに送信するサーバーがあります。
[20:03] そして、これが MQTT サーバーをリッスンしています。いいですね、とてもクールです。MQTT に馴染みがない方のために言うと、WebSocket タイプのプロトコルの IoT 版のようなものです。-ええ。-素晴らしい。WebMCP についてはたくさん話してきました。冒頭でおっしゃったように、これは非常に広い領域です。今、ウェブの未来をどこへ持っていくかを考えている人がたくさんいます。興味があるのですが、今後ウェブの完全なエコシステムを築き、起きているすべての変化の中でウェブを健全に保つために、他に何を調べる必要があるかについて、何かお考えはありますか。
[20:37] ええ、まず第一に、ウェブは残り続けると思います。それは良かったです。-ウェブを閲覧すること自体もそうだと思いますよね。-ええ。多くの場合、私たちは楽しいから、興味深いからウェブを閲覧します。エージェントが常にそれを置き換えるとは思いません。エージェントは、一部のユーザーフローの摩擦を取り除いたり、ワークフローを自動化したりする場面で本当に力を発揮すると思います。今まさにそこが輝くところです。それが一つだと思います。もう一つは、たとえば WebMCP のようなものを考える場合でも、WebMCP はツールを公開しますが、スキルのようなものも考えられます。
[21:12] たとえば、エージェントにもっと大きなタスクを実行するためにツールを組み合わせるレシピを何らかの形で渡せないか、ということです。そういうふうに考えることもできます。まだ起こりうることはたくさんあるので、可能なことのほんの表面をなぞっているにすぎないと思います。WebMCPの中でも、たとえば長時間実行されるツールがある場合に進捗を示せるようにしてほしいという機能リクエストをたくさん見てきました。そのとおりで、たとえばファイルをダウンロードするツールがあり、数分かかるとします。現状では、エージェントがやり取りする方法、つまりページからエージェントへダウンロードの進捗がどうなっているかを伝える方法がありません。
[21:51] それもとても興味深いものになり得ます。とても有意義でした。Andreさん、ご参加いただきありがとうございました。-ありがとうございました。-お越しいただけて本当によかったです。さらに質問があれば、ぜひコメントに残してください。いくつかは今後の動画でお答えできるかもしれません。それでは、ご視聴いただきありがとうございました。また次回お会いしましょう。さようなら。強力なウェブを、もっと手軽に。もっと見る
英語の原文字幕を見る
[0:00] Welcome back. AI is changing the world around us, and for the web in particular, I think this is a really interesting time of change. It's not entirely clear what the future will look like, but it's clear that more users are now turning to agents when they have a question about the world or a task they need to complete. It's fair to say that the change we're seeing is on the same scale as, if not greater than, the change when users started accessing the mobile web. With all of that in mind, today I sat down with Andre on the Chrome team and I asked him some questions about where he sees us heading.
[0:34] DEVELOPER MODE Welcome, Andre. -Thank you very much. -Of course, great to have you. We asked online for some questions. I think we posted on Reddit and asked elsewhere as well. I think a general sentiment or unanswered question that people had was, why does the web even need to evolve? People like the web. They're happy with what we have. Could you talk a little bit about what we're thinking about right now and where we think we might need to move the web in the future. Of course, so users have been using agents more and more.
[1:05] -Yeah. -Like, sometimes it's Gemini, or more recently, things like Gemini in Chrome. At the beginning, users were using it more in the sense of "Oh, can I ask a question?" or "Can you summarize the text?" or "Can you author an email for me?" However, the user expectation is changing. Users now expect agents not only to help them with those tasks but actually to executing some of them. It's not just about asking the agents to write an email anymore; it's about also asking the agent to send the email on your behalf.
[1:37] So that's what's changing. As developers, if you have a product that sends emails, for instance, you want to make sure that the agent can use your product to send that email. You need some integration points to those agents because, again, it's not about the agent being the user, it's about the agent being a tool that the user is using to use your product. As a developer, you want to make sure that a user is able to use your product with whatever interface they're using. Yeah. Before we get into more detail, could you explain what you're working on and then how that fits into the broader space of all of the work that Google and the broader industry is doing right now?
[2:15] What we're seeing, and the way we're calling this new increased usage of agents, we're calling that the agentic web, and as a developer, the way you can think about it is you want to make sure that your product is usable by agents, and you can break this into three pillars. One of them is discovery, and discovery is about how does an agent know your product exists, how does an agent know what your product does, and it's quite similar to what you would do for Search, for instance.
[2:46] You can think about making sure that robot.txt exists, make sure you have good sitemaps, but there's also newer things like lllms.txt. Yeah, this is like a robots.txt-type hidden file. It is a file that sits in a standard location, that has a lot of the content of your website. Instead of the agent looking at your entire site for everything, you can find everything in one place. Okay. Yeah. And then you have the understanding part of it: When an agent goes to your site, it knows what it does, now it needs to read and understand the content.
[3:19] Yeah. Llms.txt also plays a little bit into that because it has all the content, but you can also think about now, if the agents reading your site's HTML, we want to make sure the HTML is a very usable structure, it's clean, so you can do that. Many agents today, for instance, cannot run JavaScripts. If you have a fully client-side random page that doesn't have any content, they may struggle with that. Others can. This strikes me as similar to the evolution of Search in general. My understanding is Google Search didn't used to run JavaScript for sites, and then as we started seeing more JavaScript-heavy applications that maybe changed and evolved.
[3:57] You can also think about things like content negotiation, which is when the agent comes to your page and you know it's an agent, you can add some headers or a metatag that would say, "Hey, here's an equivalent Markdown for you to read," because agents like using Markdown. It generally uses less tokens than HTML so the agent can do better there. -Finally, there's the usability part. -Yeah. It's not just about the agents knowing your product exists and understanding what it does and the content, but it's also being able to use that. Right now, what most agents do is something we call actuation, which is trying to emulate how a user uses your website.
[4:32] That means that the agent takes a screenshot of the page, then run that through a vision model, try to understand what it does. In that sense, as a developer, you want to make sure that your layout is clear to the agents. For instance, if a button looks like a button, the agent will figure out it's a button, but if it doesn't look like a button, it's less likely the agent will understand what to do. You want to make sure that your layout's clear. You also want to make sure that your HTML is well structured. By that what I mean is let's say you have a button that's related to a form.
[5:03] If your button sits within the form tag, it'll be clear to the agents those two things are related. Which seems like it's obvious you should do that, but I feel like there are lots of websites that don't do that. Exactly. If your button sits outside the form, the agent will struggle. Finally, there is accessibility. The agent can read the accessibility tree, so if you have good accessibility markup, it's actually going to help the agents understand your page as well. Interestingly, all of those things that we're talking about, they're good for users, so whatever is good for your users is also good for the agents to understand your website.
[5:38] But there's more to that. There's one thing we've been working on called WebMCP. WebMCP, the challenge with that is that screenshots, DOM, accessibility tree, it can be a lot of context that the agent needs. And the more context, the longer it takes. The bigger the context, the longer it takes for the agent to answer. It also makes the agent less reliable. It increases the likelihood the agent gets something wrong, clicks on the wrong button or just makes a misunderstanding.
[6:11] What you can do instead is that you, as a site's developer, you can provide tools for an API called WebMCP. Those tools, the agent can use those tools directly. Instead of reading all the content, trying to understand the DOM, taking screenshots, you can just call up on those tools. And so that will take less time, less tokens, and become more reliable. Yeah. As a developer, that gives you the advantage that you can guide the agent on how to use your page. If you provide the right set of tools with the right descriptions, the right parameters, then it guides the agents on how to use your product.
[6:44] That makes sense. Do you have a demo where you can show how WebMCP works in practice? -Yes, of course. -Okay, amazing. Let's go to the demo. -This is a Flight Search demo. -Yeah. I'm going to open this on the site. You can imagine you're on Google Flights or any flight booking site you might use. Yeah, on the on the left side, we have this Flight Search product. On the right side, we have an example extension that the team has built. -You know all about extensions. -Yeah. So this extension is mimicking an agent, so this could be Gemini in Chrome or any agent that user has installed.
[7:19] And then I assume this site has somehow registered some tools through WebMCP. Yes, this site has registered some WebMCPs tools. In the case of this page, it has one tool called searchFlights. Okay. Yeah. Let's say, if I say tell the agents, "Search flights from London to New York for next Monday returning after a week for one passenger." The agent's thinking now, but it should be able to call upon the searchFlights tool, and it's asking me for permission, "Can I search flights?"
[8:00] I'm going to say Allow. Now, you can see that the agent has searched for flights from London to New York for next Monday, which is the 31st, from when we're recording, and then it's going to return a week later. That's exactly what we look for. Now, once we navigated to this page, we got another tool registered-- Yes. Which is interesting. How are these tools being registered? I think there's a JavaScript API and then also some DOM support we have for declaratively marking up some elements.
[8:34] WebMCP has a Declarative tool which allows you to add markup to existing web forms, so you add special attributes to those forms and they become tools that the agent can use. It also has an Imperative API, which is JavaScript-based. In the case of this demo, I'm using the Imperative APIs. Okay, yeah, I feel like the Imperative ones are the ones that always seem most appealing to me. I like, from a web perspective, that we have the Declarative ones. I think it's nice to support that, but, yeah, I feel like I always lean towards the JavaScript.
[9:06] Yeah, I think it really depends on the products. Sometimes you're more of a legacy product or you're writing the code yourself, it can be much faster to build. If you already have a form, then it's easy. Exactly. Are you saying we have a new tool registered now because we're on this new page? Yes, so that's one interesting thing about WebMCP is that you can register and then unregister tools dynamically. In this case, once the search happened, there was a new tool registered. If I tell my agents "Show me only direct flights below, let's say, $800," if I say something like that, it's going to think a little bit.
[9:54] It's asking me to call a tool called setFilters which changes my filter configuration. If I say Allow, it's now showing flights below 800 but also it clicked the Nonstop filter. Amazing. Like, in this case, you wrote one prompt and then it called a tool, and then you wrote another prompt and it called a tool. Presumably, you could do all of that as like a one-shot prompt. An interesting thing to think about is, when designing WebMCP tools is that user behavior can change, some users could go and say, "Oh, I want to book a flight to New York," and then the agent would have to clarify with them and say, "Okay, where are you coming from and which dates?" right?
[10:35] Some users could do as you're saying and give the entire thing at the same time. What we can do as a demo is let's try going back to the search page and maybe we can start a new conversation with our agents and say, "I want to book a flight from London to New York, leaving next Monday and returning after a week for one passenger.
[11:08] Show me only direct flights below $800." That's to tell it to go. Again, it's thinking, asking me if it can call the searchFlights tool. -Yeah. -It did. Now, it's automatically saying, "Okay, I have a new tool and I want to filter..." I guess, in this case, this means, even within the same prompt, it can discover the new tools. -Yes. -Yeah.
[11:39] And then, if you say yes, then it's going to call, and then it now has supplied the filters just like before. Amazing. And which agents support WebMCP right now? Obviously, we have this extension, which is nice as a demo, but are there real agents that a user might use that support WebMCP? That's a great question. WebMCP is a web standards proposal. Yeah. And currently in an origin trial experiment in Chrome. Okay, so any website developer can opt into the origin trial and use this, but it's not available until you've opted in to the origin trial.
[12:15] Yes, it's not available until you opt in. If you want to try yourself in your own development environment, you can just go to Chrome, turn on a flag, and then that works. If you want to have that available to your users using your website, you have to join the origin trial. But then, as a website developer, you join the origin trial. Your users don't need to do anything. It'll be available to your users. Yeah, that's it. It's good to keep in mind that it's early days for the API. Origin trial means it's experimental, which means what we're looking for really right now is for developers to try it out and give us feedback so we can make sure that the API is fit for purpose, like try to find a really good market fit for the API.
[12:56] Makes sense. Yeah. Now, in terms of agents, Gemini in Chrome has been experimenting with WebMCP. -That we announced back at I/O. -Yes. We also have... Cloudflare has a product called Browser Run -which also supports WebMCP. -Yeah. It's already actually in production on their site. Brave has been experimenting with WebMCP in their own agent called Leo. Okay. Recently, OpenAI has landed WebMCP support into their agents.
[13:28] Yeah, I saw this recording earlier this week. It was very recent news. Yeah, it's very early days for the ecosystem, but we're already seeing that there's loads of interest from developers, like loads of websites are already experimenting with WebMCP. We also see a lot of interest on the agent side, which is important. We want both sides to grow. Yeah, makes sense, and you touched very briefly on this being a standard that's being worked on but early days. Could you talk about the standardization story and which browsers are involved in that work?
[14:03] Yeah, the standard itself, of course, like any web standard, there's a lot of involvement from the community. The standard itself was started by Microsoft, Google, and some other members of the community. It was a kind of a joint effort. Now, there is people from loads of backgrounds, different businesses, coming in and contributing to this pack. Great. Can Chrome Extensions use this? I mean, I guess we can see from the demo that Chrome Extensions can use this. You can build an agent as a Chrome Extension and then it can interact with the page.
[14:37] Are there other ways Chrome Extensions can use WebMCP? Yes, you're right. What you're seeing is one way that an extension can use it. You can get tools from a page or you can execute tools on a page. But the way you do that in an extension is to use the content script permission for now. There isn't an Extension-dedicated API yet. The way you do it is that you use content scripts to call the APIs, actually available to the page. Makes sense. Yeah. Which means that registered tools is also available to extensions.
[15:07] In the same way you can get tools and execute tools, you can also register tools. It's possible for an extension to register a tool that another agent could call. Yeah, and I see also, on the screen, when it's asking us to run a tool, we have to allow or not allow that tool to be executed. This is presumably just a UX decision for whoever's building the agent to decide when they prompt the user. Yeah, so in this case, it's a decision that this extension has made. I think that, as developers, we probably want to give it some thoughts.
[15:40] Yeah. There's maybe two scenarios where you want to think about permissions. First one is some tools are read-only, so they don't really change anything on their products. However, some of them might be really revealing sensitive information from the user, like maybe-- That feels more dangerous than a read-only tool that's pulling info from a site. If you think that the agent has access to multiple pages and multiple things, you probably want to consider as a developer always: Is this dangerous?
[16:11] Is this revealing dangerous information about my user or about something? If that's the case, you may want to consider asking the user for permission. And then the other thing to think about is, with write tools, you may feel that you always want to ask permission for write tools, but there's actually more nuance to that. You should think about how destructive that tool is and how reversible that is. Like, for instance, a tool that searches for a flight, it's probably not too bad. It's probably not going to have a huge impact. But, if it's a tool that's taking payments, for instance-- -Yeah. -Right?
[16:45] You might want to make sure you ask the user for permission before taking payments. Does the agent have to guess what the implication of running a tool would be or do we have a way of the website indicating that? That's a part of the API: some bits already exist; some are still evolving. You can already provide hints to the agents. For instance, there's a read-only hint. I didn't know we had something for that already. That will basically tell the agent that this tool doesn't change, doesn't have any changing impact, doesn't write anything on the page, -just returns information. -Yeah.
[17:16] So then the agents can use some of those hints to make a decision of showing the prompt or not. Agents can generally also use up what the intent is or the tool description is and make their own call. In this case, that's what it's doing. The agents actually looking at the tool description and making a call of, "Should I ask for permission or not?" Yeah, makes sense. I noticed throughout the whole video, we've had this on the table. I know you're clearly a maker; you like dabbling in hardware.
[17:47] You have all of this. Could you talk a little bit about what this does? Yeah, of course. I had it for I/O in my office. Anyone who joins a call with me, they'll probably see this. I have this LED behind me, and I have this website where, if you go, you can pick an emoji and that gets displayed behind me. If I change this to an alien, you're actually going to see an alien in an emoji. But how's this relevant to WebMCP? The way it's relevant is-- let's go back to our extension-- is that I have actually exposed WebMCP tools in this.
[18:22] Oh, nice. Which means now you can ask your agents to change whatever is rendering in my LED grids. Do you have an idea of anything you want to ask the agent to display? Yeah, I mean, it's been quite sunny recently, maybe something that makes me think of the summer or having a picnic in the sunshine: Pick an emoji that reminds me of a picnic In the sunshine.
[18:55] Alright, let's do that. It's thinking; it's searching for emojis. There's an emoji search too. It's actually calling the tool multiple times because what it's doing under the hood is that it's trying different keywords to search for emojis. Okay, it's kind of like some, maybe I'll search for a cloud or picnic basket or whatever. Yeah, and it found one. Let's allow it and see what it's coming up with. Yeah, it's a picnic basket. Hey, we honestly haven't tried that before.
[19:25] I guess I got lucky guessing what it might search for. You were telling me earlier that this is going via the internet and then sending some MQTT commands, how is this all working? Yeah, this is using Firebase Realtime Database. Okay. The web application saves into a Firebase Realtime Database. Then I have a server that will actually pick information from that Realtime Database. transform the emoji into an actual array of bytes, as an image, and send that to an MQTT server.
[20:03] Then, this is listening to the MQTT server. Nice, super cool. If you're not familiar with MQTT, it's like a IoT version of a WebSocket-type protocol. -Yeah. -Amazing. We've spoken a lot about WebMCP. As you said at the start, this is a very broad area. There's a lot of people right now that are thinking about where we take the future of the web. I'm curious, do you have any other thoughts on what else might we need to look into to have a complete ecosystem for the web going forward and to keep the web healthy with all of the changes happening?
[20:37] Yeah, first of all, I think the web's going to stay around. Okay, that's good to hear. -I think even browsing the web, right? -Yeah. In many cases, we browse the web because it's fun, because it's interesting. I don't think agents will always replace that. I think agents will be really good when it's about removing friction from some user flows or automating workflows. That's where they really shine right now. I think that's one. The other is like, even when thinking about something like WebMCP, for instance, WebMCP exposes tools, but you can think about things like skills.
[21:12] Like, for instance, can I somehow give my agents a recipe of how to combine my tools to execute a bigger task. That's one way you can think about it. There are many things that could happen still, so I think we're literally scratching the surface of what is possible. Even within WebMCP, I know I've seen lots of feature requests around being able to indicate progress, for example, if you have a long-running tool. Exactly, let's say you have a tool that downloads a file, and it'll take a few minutes. Right now, there's no way for the agents to communicate, like for the page to communicate back to the agent what the progress of the download looks like.
[21:51] That's something that could be very interesting as well. This has been great. Andre, thank you so much for joining us. -Thank you very much. -It's been really great to have you. If you do have more questions, then please leave them in the comments. Maybe we can answer some of them in a future video. Otherwise, thank you so much for watching, and we'll see you next time. Bye. A POWERFUL WEB. MADE EASIER. WATCH MORE
Vidleaf リーダーで開く
文字起こしを検索し、行を選択し、タイムスタンプ付きで引用をコピーし、翻訳します。
出典表示
「WebMCPに関する質問にお答えします」by Chrome for Developers(https://www.youtube.com/@chromedevs)、CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)の下でライセンスされています。元動画:https://www.youtube.com/watch?v=bG5Dwkz65Es。このページは動画のテキスト文字起こしに段落区切りとタイムスタンプを加えたものです。制作者はVidleafと提携しておらず、Vidleafを推奨するものでもありません。VidleafはAIによる句読点の付与とAI生成の要約を追加しました。元の文言はこのページで引き続き確認できます。
あなたは制作者または権利者ですか? 訂正または削除を依頼する: copyright@vidleaf.app (これらのページについてをご覧ください)。
最終更新