Skip to main content

Agent tools: Web Search and Web Fetch

Use Web Search when you know what you need to find but not the exact URL. Phrase the query in the chat and, if it helps, point the agent at a suitable source.

Use Web Fetch when the link is already known and the agent needs to read the contents of a page or a PDF. Attach the URL and ask the agent to extract the details you need, compare them with your code, or summarize the document.

Stack Overflow

Good for finding a practical solution to an error or a question other developers have already run into. Provide the error text and the important details of your environment, then ask the agent to find relevant discussions.

GitHub

Choose the search target that fits your task:

  • Repositories when you need a project or an example implementation. Specify the technology and the important characteristics of the repository.
  • Issues when you need to check whether a bug is already known, or find a related discussion or pull request. Specify the repository and the symptoms of the problem.
  • Users when you need to find a user or an organization, for example a library maintainer. Specify the name, the project, or other details you know.

GitHub search works with public data. For private repositories and their issues, connect GitHub MCP.

Wikipedia

Good for quickly getting familiar with an unfamiliar term or technology before a more specific search. Specify the term and the language you need the article in.

Web Search only searches the supported sources: Stack Overflow, GitHub, and Wikipedia. It is not a replacement for general web search, and it does not check official documentation, blogs, or package registries. If a search returns nothing, that only means there is no result in these sources.