Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -669,13 +669,12 @@ The <dfn method for=ModelContext>registerTool(<var>tool</var>, <var>options</var
1. If |tool map|[|tool name|] [=map/exists=], then return [=a promise rejected with=] an
{{InvalidStateError}} {{DOMException}}.

1. If |tool name| or {{ModelContextTool/description}} is an empty string, then return [=a promise
rejected with=] an {{InvalidStateError}} {{DOMException}}.
1. If |tool name| is not a non-empty string or |tool|'s {{ModelContextTool/description}} is the
empty string, then return [=a promise rejected with=] an {{InvalidStateError}} {{DOMException}}.

1. If either |tool name| is the empty string, or its [=string/length=] is greater than 128, or if
|tool name| contains a [=code point=] that is not an [=ASCII alphanumeric=], U+005F (_),
U+002D (-), or U+002E (.), then return [=a promise rejected with=] an {{InvalidStateError}}
{{DOMException}}.
1. If |tool name|'s [=string/length=] is greater than 128, or if |tool name| contains a [=code
point=] that is not an [=ASCII alphanumeric=], U+005F (_), U+002D (-), or U+002E (.), then
return [=a promise rejected with=] an {{InvalidStateError}} {{DOMException}}.

1. Let |stringified input schema| be the empty string.

Expand Down Expand Up @@ -833,8 +832,8 @@ The <dfn method for=ModelContext>getTools(<var>options</var>)</dfn> method steps

1. Let |callerOrigin| be |toolRequestor|'s [=Document/origin=].

1. If |toolOwnerIsRequested| be true if |targetOrigin| is [=same origin=] with |callerOrigin|,
or if |from origins| [=list/contains=] |targetOrigin|; otherwise, false.
1. Let |toolOwnerIsRequested| be true if |targetOrigin| is [=same origin=] with

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — kept this editorial correction unchanged in 63a8b3e.

|callerOrigin|, or if |from origins| [=list/contains=] |targetOrigin|; otherwise, false.

1. If |toolOwnerIsRequested| is false, then [=iteration/continue=].

Expand Down
Loading