+ | ontoolcancel
+ | toolcancel
+
+
+The {{ToolActivatedEvent}} interface represents a {{ModelContext/toolactivated}} event that is
+dispatched at a {{ModelContext}} object when the execution of a tool begins.
+
+
+[Exposed=Window, SecureContext]
+interface ToolActivatedEvent : Event {
+ constructor(DOMString type, optional ToolActivatedEventInit eventInitDict = {});
+ readonly attribute DOMString toolName;
+};
+
+dictionary ToolActivatedEventInit : EventInit {
+ DOMString toolName = "";
+};
+
+
+
+ : toolName
+ :: Returns the name of the tool whose execution has started.
+
+
+
+
+The {{ToolCancelEvent}} interface represents a {{ModelContext/toolcancel}} event that is dispatched
+at a {{ModelContext}} object when the execution of a tool is cancelled.
+
+
+[Exposed=Window, SecureContext]
+interface ToolCancelEvent : Event {
+ constructor(DOMString type, optional ToolCancelEventInit eventInitDict = {});
+ readonly attribute DOMString toolName;
+};
+
+dictionary ToolCancelEventInit : EventInit {
+ DOMString toolName = "";
+};
+
+
+
+ : toolName
+ :: Returns the name of the tool whose execution was cancelled.
+
+
Permissions policy integration
Access to the APIs in this specification is gated behind the [=policy-controlled feature=] " |