toolactivated" event.
@@ -820,7 +820,7 @@ The getTools(options) method steps
1. Let |tools| be an empty [=list=] of {{RegisteredTool}} dictionaries.
1. Let |navigables| be |toolRequestor|'s [=node navigable=]'s [=navigable/traversable
- navigable=]'s [=Document/inclusive descendant navigables=].
+ navigable=]'s [=navigable/active document=]'s [=Document/inclusive descendant navigables=].
1. [=list/For each=] |navigable| of |navigables|:
@@ -1001,31 +1001,31 @@ The executeTool(tool, inputObject
1. Let |completionSteps| be an algorithm that takes a [=string=]-or-null |result| and a
[=boolean=] |success|, and runs the following steps:
- 1. [=Assert=]: these steps are running [=in parallel=].
+ 1. Run the following steps [=in parallel=]:
- 1. If |targetDocument|'s [=node navigable=]'s [=navigable/traversable navigable=]'s
- [=traversable navigable/pending tool executions map=][|uuid|] does not [=map/exist=], then
- return.
+ 1. If |targetDocument|'s [=node navigable=]'s [=navigable/traversable navigable=]'s
+ [=traversable navigable/pending tool executions map=][|uuid|] does not [=map/exist=],
+ then return.
- It is possible that a pending execution identified by |uuid| no longer exists. This can - happen due to a race between (a) tool cancellation when the caller document gets destroyed or when the caller aborts the - execution via the options signal; and (b) tool promise resolution. Both - of these race to invoke |completionSteps|, and the first invocation will remove the - pending execution by its key |uuid|, this check protects subsequent racing - invocations.
-It is possible that a pending execution identified by |uuid| no longer exists. This can + happen due to a race between (a) tool cancellation when the caller document gets destroyed or when the caller aborts the + execution via the options signal; and (b) tool promise resolution. Both + of these race to invoke |completionSteps|, and the first invocation will remove the + pending execution by its key |uuid|, this check protects subsequent racing + invocations.
+