解答你對瀏覽器 AI 代理 WebMCP 的疑問 — Chrome
本頁標題、字幕、摘要與閱讀筆記為已儲存的 AI 譯文,可能有誤。時間戳與來源一致,可展開查看原始字幕,並對照原影片核對。
Chrome 工程師回答開發者關於 WebMCP 的疑問,說明結構化 HTML 表單與確定性的工具呼叫如何協助瀏覽器 AI 代理可靠地運作。
逐字稿來源:創作者上傳至 YouTube 的字幕。AI 標點由 Vidleaf 加入;原始措辭與時間戳錨點均保留。原始逐字稿可在下方取得。
AI 生成摘要
影片描述了一股朝向「代理式網路」的轉變,使用者仰賴 AI 代理來執行任務,講者表示這項轉變的規模與轉向行動網路相當,甚至更大。他呼籲開發者透過探索(robot.txt、sitemap 與 llms.txt)、可讀性(乾淨的 HTML、意識到許多代理無法執行 JavaScript,以及指向使用較少 token 的 Markdown 版本的內容協商)與可用性,讓產品能被代理使用。由於目前多數代理採用操作方式——透過視覺模型截取螢幕畫面、DOM 與無障礙樹——清楚的版面配置與良好的無障礙標記有所幫助,而對使用者有益的做法對代理也有益。由於大型上下文會讓代理變慢且較不可靠,團隊著手開發 WebMCP,讓開發者註冊代理可直接呼叫的工具;一個航班搜尋示範展示了 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] 使用者現在期待 AI 代理不僅能協助處理這些任務,還能實際執行其中一部分,例如代替他們寄送電子郵件。
AI 代理的開發者整合點
- [1:40] 舉例來說,提供寄送電子郵件功能的產品開發者,必須確保 AI 代理能使用該產品來寄送那封電子郵件。
- [1:47] 產品需要提供給 AI 代理的整合點,因為代理是使用者所使用的工具,而不是使用者本身。
- [1:58] 開發者應確保使用者能透過他們正在使用的任何介面來使用其產品。
定義代理式網路
讓產品能被 AI 代理探索與使用
透過 robots.txt、sitemap 與 llms.txt 進行探索
- [2:33] 探索關乎 AI 代理如何得知你的產品存在及其功能,類似於你為搜尋引擎所做的準備。
- [2:46] 你可以確保 robots.txt 存在並提供良好的 sitemap,也可以使用像 llms.txt 這類較新的選項。
- [2:54] llms.txt 是一種類似 robots.txt 的隱藏檔案,位於標準位置,並包含你網站的大部分內容。
- [3:05] AI 代理不必掃描你的整個網站,就能在同一處找到所有內容。
透過乾淨的 HTML 與 JavaScript 支援來理解內容
- [3:11] 在探索之後,AI 代理需要讀取並理解內容,而 llms.txt 在這方面也扮演一小部分角色。
- [3:25] 如果 AI 代理會讀取你網站的 HTML,該 HTML 應具備乾淨且非常易用的結構。
- [3:33] 現今許多 AI 代理無法執行 JavaScript,因此完全在用戶端執行且沒有內容的頁面可能讓它們難以處理,而其他代理則能應付。
- [3:43] 這類似於搜尋引擎的演進,Google 搜尋過去不會為網站執行 JavaScript,後來隨著大量使用 JavaScript 的應用程式成長而演進。
以 Markdown 替代版本進行內容協商
- [3:57] 透過內容協商,當你得知訪客是 AI 代理時,可以加入標頭或中繼標籤,指向對應的 Markdown 版本。
- [4:09] AI 代理偏好 Markdown,因為它通常比 HTML 使用更少的 token,因此代理能表現得更好。
可用性超越探索與理解
- [4:15] 可用性這部分不僅止於代理知道你的產品存在、理解其內容,更在於能夠實際使用它。
讓網站對代理友善
透過截圖與視覺模型進行操作
清晰的版面配置與結構良好的 HTML
- [4:40] 開發者應確保版面配置對代理而言清晰明瞭,因為看起來像按鈕的按鈕更容易被理解。
- [4:55] HTML 應具備良好結構:將按鈕放在其相關的表單標籤內,能讓代理清楚理解彼此的關係;而放在表單外的按鈕則會讓代理難以處理。
無障礙標記與使用者共享的好處
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 的宣告式工具讓你能為現有的網頁表單加上特殊屬性,使它們成為代理可使用的工具。
- [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] 當網站開發者加入來源試用後,使用者無須做任何事就能使用這項功能。
實驗狀態與回饋目標
正在實驗 WebMCP 的代理與產品
- [12:59] Chrome 中的 Gemini 一直在實驗 WebMCP,這點已在 I/O 上宣布。
- [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] 這個提示大概是建構代理的人所做的使用者體驗決定。
- [15:31] 在這種情況下,是否提示的決定來自擴充功能本身。
- [15:35] 開發者大概會想好好思考權限的設計。
唯讀工具與敏感資訊
- [15:46] 有些工具是唯讀的,不會更動其產品上的任何內容。
- [15:52] 有些唯讀工具可能會揭露敏感的使用者資訊,這感覺比唯讀工具從網站取得資訊還要危險。
- [16:04] 由於代理可能會存取多個頁面和內容,開發者應始終考量某項工具是否具危險性,或是否會洩露使用者的敏感資訊。
- [16:17] 若是如此,開發者可能會想先向使用者請求權限。
寫入工具權限的細微差異
- [16:19] 您可能會覺得寫入工具一律都該請求權限,但其實其中有更多細微差異。
- [16:29] 開發者應考量一項工具的破壞性有多高,以及可逆性有多高。
- [16:34] 搜尋航班這類工具大概不會太糟,影響可能也不大。
- [16:41] 對於處理付款的工具,您可能會想確保在收款前先向使用者請求權限。
API 提示與代理判斷
由 WebMCP 控制的 LED 表情符號顯示器
視訊通話用的表情符號顯示器
顯示應用程式中所公開的 WebMCP 工具
代理透過反覆呼叫工具搜尋表情符號
Firebase 與 MQTT 傳遞管道
網路與代理生態系的未來
網頁瀏覽與代理自動化
以技能與進度擴展 WebMCP
- [21:04] 除了 WebMCP 揭露工具之外,講者建議可以賦予代理一套配方或技能,以組合工具來執行更大的任務。
- [21:24] 講者表示我們才剛開始觸及可能性的表面,並指出有許多針對 WebMCP 的功能請求。
- [21:31] 其中一項請求的功能是為長時間執行的工具指示進度,例如需要幾分鐘的檔案下載。
- [21:41] 目前頁面無法將下載進度回報給代理,講者認為這可能非常有趣。
結語與提問邀請
- [21:54] 主持人感謝 Andre 的參與,並邀請觀眾在留言中留下更多問題,可能會在未來的影片中回答。
前 3 段雙語對照預覽 · 免消耗額度
以下展示前 3 段已儲存繁體中文譯文與英文原版字幕的逐段對照(零額度消耗):
歡迎回來。AI 正在改變我們周遭的世界,尤其是對網路而言,我認為這是一個非常有趣的變革時期。未來會是什麼樣子並不完全清楚,但很明顯有更多使用者現在在對世界有疑問或需要完成任務時轉向代理。可以說我們看到的變革規模與使用者開始存取行動網路時相當,甚至更大。考量到這一切,今天我與 Chrome 團隊的 Andre 坐下來,問了他一些關於他認為我們將走向何方的問題。
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.
開發者模式 歡迎,Andre。-非常感謝。-當然,很高興你能來。我們在網路上徵集了一些問題。我想我們在 Reddit 上發文,也在其他地方詢問了。我認為人們普遍的感受或未解答的問題是,為什麼網路還需要演進?人們喜歡網路。他們對我們現有的東西很滿意。你能談談我們現在正在思考什麼,以及我們認為未來可能需要將網路推向何方。當然,使用者一直在越來越多地使用代理。
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,或最近是 Gemini in Chrome 這類東西。一開始,使用者比較是用「喔,我可以問個問題嗎?」或「你可以幫我摘要這段文字嗎?」或「你可以幫我寫一封電子郵件嗎?」這樣的心態來使用。不過,使用者的期待正在改變。使用者現在期待 AI 代理不只幫他們處理這些任務,而是真的去執行其中一些任務。現在已經不只是請代理寫一封電子郵件,而是也請代理代替你寄出那封電子郵件。
-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 正在改變我們周遭的世界,尤其是對網路而言,我認為這是一個非常有趣的變革時期。未來會是什麼樣子並不完全清楚,但很明顯有更多使用者現在在對世界有疑問或需要完成任務時轉向代理。可以說我們看到的變革規模與使用者開始存取行動網路時相當,甚至更大。考量到這一切,今天我與 Chrome 團隊的 Andre 坐下來,問了他一些關於他認為我們將走向何方的問題。
[0:34] 開發者模式 歡迎,Andre。-非常感謝。-當然,很高興你能來。我們在網路上徵集了一些問題。我想我們在 Reddit 上發文,也在其他地方詢問了。我認為人們普遍的感受或未解答的問題是,為什麼網路還需要演進?人們喜歡網路。他們對我們現有的東西很滿意。你能談談我們現在正在思考什麼,以及我們認為未來可能需要將網路推向何方。當然,使用者一直在越來越多地使用代理。
[1:05]——對。 ——像是,有時候是 Gemini,或最近是 Gemini in Chrome 這類東西。一開始,使用者比較是用「喔,我可以問個問題嗎?」或「你可以幫我摘要這段文字嗎?」或「你可以幫我寫一封電子郵件嗎?」這樣的心態來使用。不過,使用者的期待正在改變。使用者現在期待 AI 代理不只幫他們處理這些任務,而是真的去執行其中一些任務。現在已經不只是請代理寫一封電子郵件,而是也請代理代替你寄出那封電子郵件。
[1:37]所以這就是正在改變的地方。以開發者來說,如果你有一個會寄送電子郵件的產品,舉例來說,你會希望確保代理能夠使用你的產品來寄出那封電子郵件。你需要一些與那些代理整合的接入點,因為,同樣地,重點不是代理成為使用者,而是代理成為使用者用來使用你產品的工具。身為開發者,你會希望確保使用者能夠用他們正在使用的任何介面來使用你的產品。對。在我們深入更多細節之前,你能不能說明你正在做什麼,然後這如何融入 Google 以及整個業界目前正在做的所有工作這個更大的範疇?
[2:15]我們所看到的,以及我們稱呼這種代理使用量增加的新方式,我們稱之為代理式網路(agentic web),而身為開發者,你可以這樣想:你要確保你的產品能被代理使用,而這可以拆成三大支柱。其中一個是探索(discovery),探索是關於代理如何知道你的產品存在、代理如何知道你的產品能做什麼,這跟你為搜尋引擎所做的工作相當類似。
[2:46]你可以思考確保 robot.txt 存在、確保你有好的 sitemap,但也有一些較新的東西,例如 llms.txt。對,這就像是 robots.txt 那類的隱藏檔案。它是一個放在標準位置的檔案,裡面有許多你網站的內容。代理不必為了所有東西而檢視你的整個網站,你可以讓它在一個地方找到所有內容。好。對。接著是理解的部分:當代理來到你的網站,它知道網站能做什麼,現在它需要讀取並理解內容。
[3:19] 對。Llms.txt 也稍微牽涉到這一點,因為它包含了所有內容,但你現在也可以想想,如果 AI 代理正在讀取你網站的 HTML,我們要確保 HTML 是非常好用的結構、很乾淨,這樣你就可以做到。舉例來說,現在許多 AI 代理無法執行 JavaScript。如果你有一個完全在用戶端隨機產生的頁面,裡面沒有任何內容,它們可能會卡住。其他的則可以。這讓我覺得很像搜尋整體的演進。據我了解,Google 搜尋以前不會為網站執行 JavaScript,然後隨著我們開始看到更多大量使用 JavaScript 的應用程式,那也許就改變並演進了。
[3:57] 你也可以想想內容協商這類事情,也就是當 AI 代理來到你的頁面,而你知道它是 AI 代理時,你可以加上一些標頭或中繼標籤,說:「嘿,這裡有對應的 Markdown 給你讀」,因為 AI 代理喜歡用 Markdown。它通常比 HTML 使用更少的 token,所以 AI 代理在那裡可以做得更好。-最後,還有可用性的部分。-對。這不只是關於 AI 代理知道你的產品存在、了解它做什麼和內容,還包括能夠使用它。現在,大多數 AI 代理做的是我們稱為 actuation 的事,也就是試圖模擬使用者如何使用你的網站。
[4:32] 那表示 AI 代理會截取頁面的螢幕擷取畫面,然後把它送進視覺模型,試著理解它做什麼。從這個意義上說,身為開發者,你要確保你的版面配置對 AI 代理來說很清楚。舉例來說,如果一個按鈕看起來像按鈕,AI 代理就會判斷它是按鈕,但如果它看起來不像按鈕,AI 代理就比較不可能理解該做什麼。你要確保你的版面配置很清楚。你也要確保你的 HTML 結構良好。我的意思是,假設你有一個與表單相關的按鈕。
[5:03] 如果你的按鈕位於 form 標籤內,AI 代理就會清楚知道這兩者相關。這看起來像是你本來就該做的事,但我覺得有很多網站沒有這樣做。完全正確。如果你的按鈕位於表單外,AI 代理就會卡住。最後,還有無障礙性。AI 代理可以讀取無障礙樹,所以如果你有良好的無障礙標記,實際上也會幫助 AI 代理理解你的頁面。有趣的是,我們談論的所有這些事情,對使用者都是好的,所以任何對你的使用者好的事,也對 AI 代理理解你的網站有好處。
[5:38] 但還不只這樣。我們一直在開發一項叫做 WebMCP 的技術。WebMCP 的挑戰在於,螢幕截圖、DOM、無障礙樹,這些都可能讓 AI 代理需要大量的上下文。上下文越多,耗時就越長。上下文越大,AI 代理回應所需的時間就越久。這也會讓 AI 代理變得較不可靠。它會提高 AI 代理出錯、按錯按鈕或產生誤解的機率。
[6:11] 你可以改用的做法是,身為網站開發者,你可以為一個叫做 WebMCP 的 API 提供工具。AI 代理可以直接使用這些工具。不必讀取所有內容、試圖理解 DOM、擷取螢幕截圖,你只要呼叫這些工具就好。這樣一來,耗時更短、權杖更少,也更可靠。沒錯。身為開發者,這給你一項優勢,就是你可以引導 AI 代理如何使用你的頁面。如果你提供正確的工具組合,搭配正確的描述與正確的參數,就能引導 AI 代理如何使用你的產品。
[6:44] 這很合理。你有沒有示範可以展示 WebMCP 在實務上如何運作?-有,當然有。-好,太棒了。我們來看示範。-這是一個航班搜尋示範。-好。我要在網站上開啟這個。你可以想像你正在使用 Google Flights 或任何你會用的航班訂票網站。對,在左側,我們有這個航班搜尋產品。在右側,我們有團隊建置的範例擴充功能。-你對擴充功能很了解。-對。所以這個擴充功能是在模擬 AI 代理,這可以是 Chrome 中的 Gemini,或使用者安裝的任何 AI 代理。
[7:19] 那我猜這個網站已經透過 WebMCP 註冊了一些工具。沒錯,這個網站已經註冊了一些 WebMCP 工具。以這個頁面來說,它有一個叫做 searchFlights 的工具。好。對,比如說,如果我告訴 AI 代理:「搜尋下週一從倫敦飛往紐約的航班,一週後回程,一名乘客。」AI 代理現在正在思考,但它應該能夠呼叫 searchFlights 工具,而且它正在向我請求權限:「我可以搜尋航班嗎?」
[8:00] 我要說允許。現在你可以看到,AI 代理已經搜尋了從倫敦飛往紐約、下週一的航班,也就是我們錄影當下的 31 號,然後它會在一週後回程。這正是我們要的。現在,一旦我們導覽到這個頁面,我們又取得另一個已註冊的工具——對。這很有意思。這些工具是如何註冊的?我想有一個 JavaScript API,另外我們也對一些元素提供了一些 DOM 支援,可用宣告式的方式標記。
[8:34] WebMCP 有一個宣告式工具,讓你能在現有的網頁表單上加入標記,只要為這些表單加上特殊屬性,它們就會變成 AI 代理可使用的工具。它也有命令式 API,是以 JavaScript 為基礎。在這個示範中,我使用的是命令式 API。好,沒錯,我覺得命令式 API 總是最吸引我。從網頁的角度來看,我也喜歡我們有宣告式工具,我認為支援它是件好事,不過,對,我感覺自己總是偏好 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 擴充功能可以使用這個。你可以把 AI 代理建構成 Chrome 擴充功能,然後它就能與頁面互動。
[14:37] Chrome 擴充功能還有其他方式可以使用 WebMCP 嗎?是的,你說得對。你看到的是擴充功能使用它的一種方式。你可以從頁面取得工具,或是在頁面上執行工具。但目前在擴充功能中做到這件事的方式,是使用內容指令碼權限。目前還沒有擴充功能專用的 API。做法是使用內容指令碼呼叫實際上可供頁面使用的 API。有道理。是的。這也意味著已註冊的工具同樣可供擴充功能使用。
[15:07] 就像你可以取得工具和執行工具一樣,你也可以註冊工具。擴充功能可以註冊一個工具,讓另一個 AI 代理來呼叫。是的,我也看到在畫面上,當它要求我們執行工具時,我們必須允許或不允許執行該工具。這想必只是打造 AI 代理的人所做的使用者體驗決定,用來決定何時提示使用者。是的,所以在這個情況下,這是這個擴充功能所做的決定。我認為,身為開發者,我們大概應該好好思考這件事。
[15:40] 是的。大概有兩種情境是你需要思考權限的。第一種是有些工具是唯讀的,所以它們其實不會改變其產品上的任何東西。然而,有些工具可能會揭露使用者的敏感資訊,例如也許——那感覺比從網站提取資訊的唯讀工具更危險。如果你認為 AI 代理可以存取多個頁面和多個東西,身為開發者,你大概應該始終考慮:這危險嗎?
[16:11] 這是否洩漏了關於我的使用者的危險資訊?還是關於其他什麼東西的資訊?如果是這樣的話,你可能要考慮先向使用者請求權限。接著另一件要思考的事是,對於寫入類工具,你可能會覺得自己總是應該先請求權限,但其實這裡有更多細微的差別。你應該思考那個工具具有多大的破壞性,以及它有多容易復原。舉例來說,一個搜尋航班的工具,大概沒什麼大不了。它大概不會造成太大的影響。但如果是一個處理付款的工具,比如說—— -是啊。 -對吧?
[16:45] 在處理付款之前,你可能要確保先向使用者請求權限。AI 代理是否必須自行猜測執行某個工具會帶來什麼影響?還是我們有辦法讓網站表明這一點?這是 API 的一部分:有些部分已經存在,有些還在演進中。你已經可以提供提示給 AI 代理了。舉例來說,有一個唯讀提示。我不知道我們已經有這樣的東西了。那基本上會告訴 AI 代理,這個工具不會改變任何東西、不會造成任何變動性的影響、不會在頁面上寫入任何內容, -只會回傳資訊。 -是啊。
[17:16] 所以 AI 代理可以利用其中一些提示,來決定是否顯示提示訊息。AI 代理通常也能根據意圖或工具描述來自行判斷。在這個例子裡,它做的就是這件事。AI 代理實際上會查看工具描述,並自行判斷:「我該不該請求權限?」是啊,有道理。我注意到在整段影片中,我們一直把這個東西放在桌上。我知道你顯然是個創客,喜歡玩硬體。
[17:47] 你擁有這一切。你能不能稍微談談這個東西有什麼作用?當然可以。我為了 I/O 把它放在我的辦公室裡。任何和我通話的人,大概都會看到這個。我背後有這個 LED,而我有一個網站,如果你上去,可以挑一個表情符號,那個符號就會顯示在我背後。如果我把這個換成外星人,你實際上就會看到一個外星人表情符號。但這和 WebMCP 有什麼關係?它之所以有關聯,是因為——讓我們回到我們的擴充功能——我其實在這個東西裡公開了 WebMCP 工具。
[18:22] 喔,不錯。這表示現在你可以請你的 AI 代理去改變我 LED 陣列上顯示的任何內容。你有沒有想到想請 AI 代理顯示什麼?有啊,我是說,最近一直很晴朗,也許來點讓我想到夏天、或在陽光下野餐的東西:挑一個讓我想到在陽光下野餐的表情符號。
[18:55] 好,我們就來試試看。它正在思考,正在搜尋表情符號。這裡也有表情符號搜尋功能。它其實會多次呼叫工具,因為它在底層做的事情,就是嘗試不同的關鍵字來搜尋表情符號。好,這有點像,也許我會搜尋雲朵或野餐籃之類的。沒錯,它找到了一個。我們允許它執行,看看它會端出什麼結果。沒錯,是野餐籃。嘿,我們老實說之前還真沒試過這個。
[19:25] 我想我運氣不錯,猜中了它可能會搜尋什麼。你稍早跟我說,這是透過網際網路傳送,然後再送出一些 MQTT 指令,這整個是怎麼運作的?沒錯,這是使用 Firebase Realtime Database。好。網頁應用程式會把資料存進 Firebase Realtime Database。接著我有一個伺服器,會實際從那個 Realtime Database 取出資訊,把表情符號轉換成實際的位元組陣列,當成影像,再送到 MQTT 伺服器。
[20:03] 然後,這個裝置會監聽 MQTT 伺服器。太好了,超級酷。如果你不熟悉 MQTT,它就像是物聯網版本的 WebSocket 類型協定。- 沒錯。- 太棒了。我們已經談了很多關於 WebMCP 的內容。就像你一開始說的,這是一個非常廣泛的領域。現在有很多人正在思考,我們要把網頁的未來帶往哪裡。我很好奇,對於我們還需要研究哪些東西,才能為未來的網頁建立完整的生態系統,並在各種變化發生的同時維持網頁的健康,你還有其他想法嗎?
[20:37] 沒錯,首先,我認為網頁會繼續存在。好,很高興聽到這點。- 我認為甚至連瀏覽網頁也是,對吧?- 沒錯。在很多情況下,我們瀏覽網頁是因為它很有趣、因為它很有意思。我不認為 AI 代理會完全取代這件事。我認為當重點在於消除某些使用者流程中的摩擦,或是將工作流程自動化時,AI 代理會非常出色。這正是它們目前真正發光發熱的地方。我認為這是一點。另一點是,即使是在思考像 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 的問題」由 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(參見 關於這些頁面)。
最後更新