diff --git a/index.bs b/index.bs index 274e9ac..3a0c2a7 100644 --- a/index.bs +++ b/index.bs @@ -155,6 +155,9 @@ A tool definition is a [=struct=] with the following [=struct/items=] : read-only hint :: a [=boolean=], initially false. + + : untrusted content hint + :: a [=boolean=], initially false.
@@ -263,6 +266,9 @@ The registerTool(tool, optionsregisterTool(tool, options @@ -316,6 +325,7 @@ dictionary ModelContextTool { dictionary ToolAnnotations { boolean readOnlyHint = false; + boolean untrustedContentHint = false; }; callback ToolExecuteCallback = Promise (object input, ModelContextClient client); @@ -362,6 +372,10 @@ The {{ToolAnnotations}} dictionary provides optional metadata about a tool:
: 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. + + : untrustedContentHint + :: If true, indicates that the tool's output contains data that is untrusted, from the perspective + of the author registering the tool.

ModelContextRegisterToolOptions Dictionary