Skip to content

Enable all LLM tools in prompts (agent mode) #6956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bendrucker
Copy link

@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
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
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.

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.

2 participants