@@ -172,16 +172,24 @@ A <dfn>tool definition</dfn> is a [=struct=] with the following [=struct/items=]
172172 "internal" steps that have not been defined yet, that describe how to fill out a <{form}> and
173173 its [=form-associated elements=] .
174174
175+ : <dfn>annotations</dfn>
176+ :: an [=annotations=] -or-null.
177+
178+ : <dfn>exposed origins</dfn>
179+ :: a [=list=] or [=origins=] , initially [=list/empty=] .
180+ </dl>
181+
182+ An <dfn>annotations</dfn> is a [=struct=] with the following [=struct/items=] :
183+
184+ <dl dfn-for="annotations">
175185 : <dfn>read-only hint</dfn>
176186 :: a [=boolean=] , initially false.
177187
178188 : <dfn>untrusted content hint</dfn>
179189 :: a [=boolean=] , initially false.
180-
181- : <dfn>exposed origins</dfn>
182- :: a [=list=] or [=origins=] , initially [=list/empty=] .
183190</dl>
184191
192+
185193<hr>
186194
187195<div algorithm>
@@ -390,12 +398,6 @@ The <dfn method for=ModelContext>registerTool(<var>tool</var>, <var>options</var
390398 </ol>
391399 </div>
392400
393- 1. Let |read-only hint| be true if |tool|'s {{ModelContextTool/annotations}} [=map/exists=] and
394- its {{ToolAnnotations/readOnlyHint}} is true. Otherwise, let it be false.
395-
396- 1. Let |untrusted content hint| be true if |tool|'s {{ModelContextTool/annotations}} [=map/exists=] and
397- its {{ToolAnnotations/untrustedContentHint}} is true. Otherwise, let it be false.
398-
3994011. Let |promise| be [=a new promise=] created in [=this=] 's [=relevant realm=] .
400402
4014031. Let |signal| be |options|'s {{ModelContextRegisterToolOptions/signal}} .
@@ -442,11 +444,15 @@ The <dfn method for=ModelContext>registerTool(<var>tool</var>, <var>options</var
442444 : [=tool definition/execute steps=]
443445 :: steps that invoke |tool|'s {{ModelContextTool/execute}}
444446
445- : [=tool definition/read-only hint=]
446- :: |read-only hint|
447+ : [=tool definition/annotations=]
448+ :: null if |tool|'s {{ModelContextTool/annotations}} does not [=map/exist=] . Otherwise, an
449+ [=annotations=] with the following [=struct/items=] :
450+
451+ : [=annotations/read-only hint=]
452+ :: |tool|'s {{ModelContextTool/annotations}}' s {{ToolAnnotations/readOnlyHint}}
447453
448- : [=tool definition /untrusted content hint=]
449- :: |untrusted content hint|
454+ : [=annotations /untrusted content hint=]
455+ :: |tool| 's {{ModelContextTool/annotations}}' s {{ToolAnnotations/untrustedContentHint}}
450456
451457 : [=tool definition/exposed origins=]
452458 :: |exposed origins|
0 commit comments