Skip to content

Commit bd99438

Browse files
authored
Drop closed executeTool issue links from explainers. (#259)
1 parent fca7462 commit bd99438

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,7 @@ The reason WebMCP is not limited to only declarative form tools is for the same
311311

312312
### Permissions policy and iframes
313313

314-
While much of this explainer assumes integration with built-in browser agents, WebMCP also supports **author-provided agents**, such as agents embedded directly on a page or running in an iframe, that can collaborate with parent frames and nested contexts. See:
315-
- [Issue #57](https://github.com/webmachinelearning/webmcp/issues/57)
316-
- [Issue #117](https://github.com/webmachinelearning/webmcp/issues/117)
317-
- [Issue #159](https://github.com/webmachinelearning/webmcp/issues/159)
318-
- [Issue #160](https://github.com/webmachinelearning/webmcp/issues/160)
319-
- [Issue #178](https://github.com/webmachinelearning/webmcp/issues/178)
314+
While much of this explainer assumes integration with built-in browser agents, WebMCP also supports **author-provided agents**, such as agents embedded directly on a page or running in an iframe, that can collaborate with parent frames and nested contexts.
320315

321316
By default, WebMCP is enabled in top-level `Window`s and its same-origin iframes, but access can be delegated to cross-origin iframes using the [Permissions Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Permissions_Policy) `allow="tools"`:
322317

declarative-api-explainer.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ It's an open question as to whether [an
206206
WebMCP tools, and therefore if the `agentResponse` Promise passed to `SubmitEvent#respondWith()`
207207
must resolve to an object conforming to such schema.
208208

209-
It is TBD how *declarative* WebMCP tools will be exposed to any interface that exposes a site's
210-
tools to JavaScript. See https://github.com/webmachinelearning/webmcp/issues/51 for context. Should
211-
a declarative WebMCP tool be able to be invoked from such an interface, should it exist in the
212-
future? Almost certainly, yes. But details are TBD.
209+
In-page agents can discover and run imperative tools with
210+
[`getTools()`](https://webmachinelearning.github.io/webmcp/#dom-modelcontext-gettools) and
211+
[`executeTool()`](https://webmachinelearning.github.io/webmcp/#dom-modelcontext-executetool). How
212+
*declarative* tools show up there is still TBD. Should they be invokable from that interface?
213+
Almost certainly, yes. But details are TBD.

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ A <dfn>tool definition</dfn> is a [=struct=] with the following [=struct/items=]
173173
Note: For tools registered by the imperative form of this API (i.e.,
174174
{{ModelContext/registerTool()}}), this is the stringified representation of
175175
{{ModelContextTool/inputSchema}}. For tools registered
176-
[declaratively](https://github.com/webmachinelearning/webmcp/pull/76), this will be a
176+
[declaratively](https://github.com/webmachinelearning/webmcp/blob/main/declarative-api-explainer.md), this will be a
177177
stringified JSON Schema object created by the
178178
[=synthesize a declarative JSON Schema object algorithm=].
179179
[[!JSON-SCHEMA]]
@@ -185,7 +185,7 @@ A <dfn>tool definition</dfn> is a [=struct=] with the following [=struct/items=]
185185

186186
Note: For tools registered imperatively, these steps will simply invoke the [=imperative
187187
execute steps=]. For tools registered
188-
[declaratively](https://github.com/webmachinelearning/webmcp/pull/76), this will be a set of
188+
[declaratively](https://github.com/webmachinelearning/webmcp/blob/main/declarative-api-explainer.md), this will be a set of
189189
"internal" steps that have not been defined yet, that describe how to fill out a <{form}> and
190190
its [=form-associated elements=].
191191

@@ -1247,7 +1247,7 @@ dictionary RegisteredTool {
12471247

12481248
<h3 id="declarative-api">Declarative WebMCP</h3>
12491249

1250-
This section is entirely a TODO. For now, refer to the [explainer draft](https://github.com/webmachinelearning/webmcp/pull/76).
1250+
This section is entirely a TODO. For now, refer to the [Declarative API explainer](https://github.com/webmachinelearning/webmcp/blob/main/declarative-api-explainer.md).
12511251

12521252
<div algorithm>
12531253
The <dfn>synthesize a declarative JSON Schema object algorithm</dfn>, given a <{form}> element

0 commit comments

Comments
 (0)