You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: "Invalid 'tools': array too long" when using Copilot GPT 5.1 #4909
This is a known limitation where GitHub Copilot models have a maximum of 128 tools, and exceeding this limit causes the 'Invalid tools: array too long' error you're experiencing. The referenced issue proposes implementing a virtual tools concept to automatically activate tools on demand, similar to VSCode's implementation.
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Nov 29, 2025
This issue might be a duplicate of existing issues. Please check:
This is a known limitation where GitHub Copilot models have a maximum of 128 tools, and exceeding this limit causes the 'Invalid tools: array too long' error you're experiencing. The referenced issue proposes implementing a virtual tools concept to automatically activate tools on demand, similar to VSCode's implementation.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 29, 2025
You have one or more mcp servers with a lottt of tools
rekram1-node commentedon Nov 29, 2025
This many tools will degrade llm performance and completely eat up your already limited context window on github copilot
itse4elhaam commentedon Nov 29, 2025
Yeah, I was already thinking of it, think this is my sign to fix it 😅