diff --git a/declarative-api-explainer.md b/declarative-api-explainer.md index 61ae86b..68af790 100644 --- a/declarative-api-explainer.md +++ b/declarative-api-explainer.md @@ -172,7 +172,7 @@ interface SubmitEvent : Event { }; ``` -**`toolactivated` and `toolcanceled` events** +**`toolactivated` and `toolcancel` events** We introduce these events that get fired at the `ModelContext` object when a WebMCP tool is run, and when its invocation is canceled. @@ -183,7 +183,7 @@ form to the user's attention, once a declarative tool is filled out but before i JavaScript equivalent of the [`:tool-form-active` pseudo-class](#pseudo-classes). When the agent cancels a tool call (perhaps because a user has instigated another turn of the -conversation, obviating the need for the pending tool), the `toolcanceled` event is fired. Note that +conversation, obviating the need for the pending tool), the `toolcancel` event is fired. Note that this event does not fire when the site itself cancels the tool, due to removing the form element or changing its name or description. @@ -195,7 +195,7 @@ Some open questions: > that](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/script_tools/model_context.cc;l=265-274;drc=2af6413cf36d701fdaffb09188f2ab2a5be37f4f). > [!WARNING] -> For declarative, should they be fired at `Window` or at the `
` that registered the tool in +> For declarative, should they be fired at `ModelContext` or at the `` that registered the tool in > the first place, and bubble up to the document that way? See > https://github.com/webmachinelearning/webmcp/issues/126. diff --git a/security-privacy-questionnaire.md b/security-privacy-questionnaire.md index dc0e7df..e6e5c28 100644 --- a/security-privacy-questionnaire.md +++ b/security-privacy-questionnaire.md @@ -60,7 +60,7 @@ Yes, origin-supplied tools can influence the user agent's UI in the following wa - A tool's [`title`](https://webmachinelearning.github.io/webmcp/#dom-modelcontexttool-title) is displayed by the user agent when referencing the tool in its UI. - Tool responses (the return value of [`execute`](https://webmachinelearning.github.io/webmcp/#dom-modelcontexttool-execute)) may be shown in, or influence, the user agent's UI. -- [Tool annotations](https://webmachinelearning.github.io/webmcp/#dom-modelcontexttoolannotations) can indirectly influence how an agent presents a tool invocation (e.g., a `readOnlyHint` may cause the agent to skip a confirmation step). +- [Tool annotations](https://webmachinelearning.github.io/webmcp/#dictdef-toolannotations) can indirectly influence how an agent presents a tool invocation (e.g., a `readOnlyHint` may cause the agent to skip a confirmation step). There is also discussion of `requestUserInput` in [Issue #165](https://github.com/webmachinelearning/webmcp/issues/165).