Study FAQ
Why can a Copilot custom agent fail to search the web even when its prompt asks it to?
Also asked as 2
- Does writing search the web in a Copilot custom agent profile give it web access?
- Why does a Copilot specialist lack web research capability despite its role instructions?
Answer
A custom agent's prompt does not create a search tool or authorize an external connection. The selected runtime must provide an applicable tool, the profile must expose it, and its credentials and session permissions must permit the requested work.
The search alias searches repository files or text. It is not public web search. GitHub's custom-agent configuration reference lists the web alias as currently not applicable to Copilot in the cloud, so adding that alias does not demonstrate working cloud web access.
Inspect the effective tool inventory and actual activity in the session. If the agent should use an external integration, verify that it is configured for this runtime and that its service account can access the intended resources. In CLI, the MCP management view can show a configured server's status and provided tools.
If the needed capability is unavailable, return that limitation to the integration owner. If tools work but the answer lacks evidence, improve the source and output requirements instead. Granting more tools does not fix an unreadable source, ambiguous role or unsupported conclusion.
References: Custom agents configuration - GitHub Docs, Adding MCP servers for GitHub Copilot CLI - GitHub Docs.
Full explanation
GH-700: Create Custom Agents with Explicit Roles and Tools
Study guide · GH-700
Read the full explanation