diff --git a/index.bs b/index.bs index 0892d93..40eba5b 100644 --- a/index.bs +++ b/index.bs @@ -263,8 +263,8 @@ The registerTool(tool) method step class=allow-2119>should reconcile this difference.
-1. Let |read-only hint| be true if |tool|'s {{ModelContextTool/annotations}} [=map/exists=], and if - its {{ToolAnnotations/readOnlyHint}} [=map/exists=] and is true. Otherwise, let it be false. +1. Let |read-only hint| be true if |tool|'s {{ModelContextTool/annotations}} [=map/exists=] and + its {{ToolAnnotations/readOnlyHint}} is true. Otherwise, let it be false. 1. Let |tool definition| be a new [=tool definition=], with the following [=struct/items=]: @@ -328,7 +328,7 @@ dictionary ModelContextTool { }; dictionary ToolAnnotations { - boolean readOnlyHint; + boolean readOnlyHint = false; }; callback ToolExecuteCallback = Promiseannotations["{{ToolAnnotations/readOnlyHint}}"]If true, indicates that the tool does not modify any state and only reads data. This hint can help [=agents=] make decisions about when it is safe to call the tool. -