Skip to content

Make tool_search visible in the tools picker#311485

Merged
bhavyaus merged 1 commit intomainfrom
dev/bhavyau/tool-search-in-picker
Apr 20, 2026
Merged

Make tool_search visible in the tools picker#311485
bhavyaus merged 1 commit intomainfrom
dev/bhavyau/tool-search-in-picker

Conversation

@bhavyaus
Copy link
Copy Markdown
Collaborator

@bhavyaus bhavyaus commented Apr 20, 2026

The tool_search tool is now enabled by default for anthropic models but were not showing up in the tool's picker UI. Without userDescription, the tool was filtered out of the picker.

- 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)
Copilot AI review requested due to automatic review settings April 20, 2026 20:44
@bhavyaus bhavyaus added this to the 1.117.0 milestone Apr 20, 2026
@bhavyaus bhavyaus added the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label Apr 20, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

This PR will be automatically cherry-picked to release/1.117 when merged.

@bhavyaus bhavyaus enabled auto-merge (squash) April 20, 2026 20:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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_search with a localized displayName and a new userDescription, plus a toolReferenceName.
  • Associate tool_search with the built-in vscode tool set for grouping in the picker.
  • Remove the explicit allowTools['tool_search'] enablement gate from getAgentTools.
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

Comment thread extensions/copilot/src/extension/intents/node/agentIntent.ts
@bhavyaus bhavyaus merged commit 78548e1 into main Apr 20, 2026
30 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/tool-search-in-picker branch April 20, 2026 21:18
@vs-code-engineering vs-code-engineering bot added release-cherry-pick Automated cherry-pick between release and main branches and removed ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch labels Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-cherry-pick Automated cherry-pick between release and main branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants