diff --git a/index.bs b/index.bs index 847677e..68a80fe 100644 --- a/index.bs +++ b/index.bs @@ -570,10 +570,6 @@ internal value=] |uuid|, run these steps: 1. If |inputObject| [=Object type|is not an Object=], then run |completionSteps| given null and [=tool execution error/invalid input=], and abort these steps. -1. [=Fire an event=] named {{ModelContext/toolactivated}} at |targetDocument|'s [=Document/associated - ModelContext|associated ModelContext=], using {{ToolActivatedEvent}}, with its - {{ToolActivatedEvent/toolName}} attribute initialized to |tool|'s {{ModelContextTool/name}}. - 1. Let |controller| be a [=new=] {{AbortController}} created in |targetDocument|'s [=relevant realm=]. @@ -629,6 +625,10 @@ internal value=] |uuid|, run these steps: 1. Run |completionSteps| given null and [=tool execution error/tool rejected=]. +1. [=Fire an event=] named {{ModelContext/toolactivated}} at |targetDocument|'s [=Document/associated + ModelContext|associated ModelContext=], using {{ToolActivatedEvent}}, with its + {{ToolActivatedEvent/toolName}} attribute initialized to |tool|'s {{ModelContextTool/name}}. +
@@ -1463,7 +1463,8 @@ that must be supported, as [=event handler IDL attributes=], by all {{ModelConte

ToolActivatedEvent Interface

The {{ToolActivatedEvent}} interface represents a {{ModelContext/toolactivated}} event that is -dispatched at a {{ModelContext}} object when the execution of a tool begins. +dispatched at a {{ModelContext}} object after a tool's {{ModelContextTool/execute}} callback is +invoked. [Exposed=Window, SecureContext]