Skip to content

Conversation

@bendrucker
Copy link
Contributor

@bendrucker bendrucker commented May 14, 2025

Enables canBeReferencedInPrompt for all LLM tools.

Set to true if the tool can be used in agent mode or referenced in chat.

Previously, these tools could only be used via the @githubpr chat participant. Only the activePullRequest tool was available directly. Now, they can all be called with # syntax or invoked by agent mode.

Perhaps this was disabled intentionally and there is additional polish to do. But this works and #6792 (comment) suggested that there was some confusion on whether this is live today (it's not).

Before

Screenshot 2025-05-14 at 11 48 59

Screenshot 2025-05-14 at 11 53 36

Using the web fetch tool works for public repositories, albeit with a lot of HTML noise as compared to feeding the model a JSON representation of the issue.

Agent mode is unable to fetch details about any issues in private repositories.

After

Screenshot 2025-05-14 at 11 44 13
Screenshot 2025-05-14 at 11 45 07

Related

@bendrucker
Copy link
Contributor Author

@microsoft-github-policy-service agree

@alexr00
Copy link
Member

alexr00 commented May 15, 2025

This was disabled intentionally. canBeReferencedInPrompt was just for referencing a tool in a prompt with # or using the attach context button. I'm confirming that canBeReferencedInPrompt also impacts tool use in agent mode.

@bendrucker
Copy link
Contributor Author

Some other references:

https://code.visualstudio.com/updates/v1_99#_vs-code-extension-tools-in-agent-mode

Any tool contributed to this API which sets toolReferenceName and canBeReferencedInPrompt in its configuration is automatically available in agent mode.

microsoft/vscode#245129
microsoft/vscode#231927

While that language isn't 100% definitive, my testing has shown that to be required for an agent to call the tool.

The screenshot I included with the checklists is triggered by the Select Tools button:

Screenshot 2025-05-15 at 13 18 47

And it seems reasonable to assume that list is the authoritative set of tools available to the agent.

Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

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

I removed a few tools that I don't think are useful.

@alexr00 alexr00 enabled auto-merge (squash) October 6, 2025 10:18
@alexr00 alexr00 added this to the October 2025 milestone Oct 6, 2025
@alexr00
Copy link
Member

alexr00 commented Oct 6, 2025

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@alexr00 alexr00 merged commit 8d888b2 into microsoft:main Oct 6, 2025
3 checks passed
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