Make tool_search visible in the tools picker#311485
Merged
Conversation
- Add userDescription and toolReferenceName to tool_search registration so it passes the canBeReferencedInPrompt check - Localize displayName and userDescription with l10n.t() - Group tool under the 'vscode' toolset - Remove redundant allowTools gate in agentIntent (already gated by models filter on registration and endpoint.supportsToolSearch)
Contributor
|
This PR will be automatically cherry-picked to |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Copilot extension’s tool registration so the tool_search tool can appear in the chat tools picker and be referenced more consistently, and simplifies tool gating in the agent tool enablement logic.
Changes:
- Register
tool_searchwith a localizeddisplayNameand a newuserDescription, plus atoolReferenceName. - Associate
tool_searchwith the built-invscodetool set for grouping in the picker. - Remove the explicit
allowTools['tool_search']enablement gate fromgetAgentTools.
Show a summary per file
| File | Description |
|---|---|
| extensions/copilot/src/extension/tools/node/toolSearchTool.ts | Adds user-facing metadata and toolset grouping so tool_search can appear in the tools picker. |
| extensions/copilot/src/extension/intents/node/agentIntent.ts | Removes the explicit agent allowlist gate for tool_search during enabled-tools computation. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 1
mjbvz
approved these changes
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
tool_searchtool is now enabled by default for anthropic models but were not showing up in the tool's picker UI. WithoutuserDescription, the tool was filtered out of the picker.