Skip to content
Discussion options

You must be logged in to vote

@r-shakeri

That is a completely fair critique. You are absolutely right that the documentation frames this around model accuracy (preventing the LLM from getting confused or invoking the wrong tool) rather than explaining the underlying payload mechanics.

However, from a purely technical standpoint, restricting the tools array does physically reduce the prompt size and context window usage.

Because Large Language Models are stateless, they have no built-in awareness of your local VS Code environment. For an agent to know a tool exists, the Copilot client must inject the tool's complete JSON schema (its name, description, and all parameter definitions) directly into the hidden system promp…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@r-shakeri
Comment options

@henderson-01
Comment options

@r-shakeri
Comment options

@henderson-01
Comment options

Answer selected by r-shakeri
@r-shakeri
Comment options

@mnifzied-create
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copilot Code accurately and faster with your AI powered pair-programmer. Question Ask and answer questions about GitHub features and usage Copilot in GitHub Copilot functionality in GitHub Copilot Chat and in github.com Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
4 participants