From fd755fc115d9c3424fa8e190d8ce68bb7c9a19e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E4=B8=9C=E5=8B=8B=20=7C=20=E9=87=91=E6=9D=B1?= =?UTF-8?q?=E5=8B=B3=20=7C=20=EA=B9=80=EB=8F=99=ED=9B=88=20=7C=20Jin=20Don?= =?UTF-8?q?gxun?= Date: Tue, 10 Nov 2026 20:44:10 +0800 Subject: [PATCH] Describe the traversable scope of WebMCP getTools() --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 68a80fe..d86fb18 100644 --- a/index.bs +++ b/index.bs @@ -752,8 +752,8 @@ is a [=model context=] [=struct=] created alongside the {{ModelContext}}.
document.{{Document/modelContext}}.{{ModelContext/getTools(options)}}
-

Returns a promise that resolves to a list of registered tools from this document and its - descendants that are exposed to this document. This API is designed for so-called "in-page" +

Returns a promise that resolves to a list of registered tools exposed to this document by + active documents in the same [=traversable navigable=]. This API is designed for so-called "in-page" agents written in JavaScript, and possibly living in <{iframe}>s. The [=user agent=]'s [=browser agent=] uses a different internal mechanism to retrieve the tools exposed to it.