diff --git a/index.bs b/index.bs index 0892d93..e9239ec 100644 --- a/index.bs +++ b/index.bs @@ -251,16 +251,11 @@ The registerTool(tool) method step
  • Throws a new {{TypeError}} when the backing "JSON.stringify()" yields undefined, e.g., "inputSchema: { toJSON() {return HTMLDivElement;}}", or - "innputSchema: { toJSON() {return undefined;}}".

  • + "inputSchema: { toJSON() {return undefined;}}".

  • Re-throws exceptions thrown by "JSON.stringify()", e.g., when "inputSchema" is an object with a circular reference, etc.

  • - -

    Currently, the only implementation of this spec (Chromium) does not throw - exceptions in the first case above. And for the second case, Chromium throws new {{TypeError}} - exceptions, as opposed to re-throwing the original exception. We should reconcile this difference.

    1. Let |read-only hint| be true if |tool|'s {{ModelContextTool/annotations}} [=map/exists=], and if