Skip to content

Default exposedTo to an empty sequence - #404

Merged
domfarolino merged 2 commits into
webmachinelearning:mainfrom
beaufortfrancois:exposedTo-default
Dec 4, 2026
Merged

domfarolino merged 2 commits into
webmachinelearning:mainfrom
beaufortfrancois:exposedTo-default

Conversation

@beaufortfrancois

@beaufortfrancois beaufortfrancois commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Default exposedTo to [] in ModelContextRegisterToolOptions (and ToolManagerRegisterToolOptions in generalized-tool-calling.md) to match Chromium CL 8806158.

Omitting exposedTo and passing { exposedTo: [] } already behave identically, so this removes the redundant existence check in registerTool() and clarifies the empty-list behavior in the domintro.


Preview | Diff

@beaufortfrancois
beaufortfrancois marked this pull request as ready for review December 3, 2026 09:27
@domfarolino

Copy link
Copy Markdown
Collaborator

Are we positive that as a result of #406, we won't end up with something like exposedTo = [user-agent] by default? I guess not, since any new knob to constrain UA-exposure even if nLP exists will need to be embedded as a new property inside nLP.

Unless of course we support WebMCP tools that can be exposed to UA without having naturalLanguageProperties, in which case the exposure mechanism might live outside of nLP anyways, and exposedTo might be a good place for that.

I guess that doesn't mean we should block this PR on figuring that out though. Any thoughts on the above before we proceed?

@khushalsagar

Copy link
Copy Markdown
Collaborator

I'm ok landing this. The question of a know to disable UA exposure is still up for debate. we can keep the spec aligned with the implementation for now.

@domfarolino

Copy link
Copy Markdown
Collaborator

Will we have a similar PR for fromOrigins?

@domfarolino
domfarolino merged commit 6e0eaa0 into webmachinelearning:main Dec 4, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Dec 4, 2026
SHA: 6e0eaa0
Reason: push, by domfarolino

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants