Class GoogleUrlContext
The URL context tool lets you provide additional context to the models in the form of URLs. By including URLs in your request, the model will access the content from those pages (as long as it's not a URL type listed in the limitations section) to inform and enhance its response.
public class GoogleUrlContext : Tool
- Inheritance
-
objectGoogleUrlContext
- Inherited Members
Remarks
The URL context tool is useful for tasks like the following:
- Extract Data: Pull specific info like prices, names, or key findings from multiple URLs.
- Compare Documents: Analyze multiple reports, articles, or PDFs to identify differences and track trends.
- Synthesize & Create Content: Combine information from several source URLs to generate accurate summaries, blog posts, or reports.
- Analyze Code & Docs: Point to a GitHub repository or technical documentation to explain code, generate setup instructions, or answer questions.
Supported models:
- Gemini 2.5 Pro, Flash, Flash-Lite
- Gemini Live 2.5 Flash Preview
- Gemini 2.0 Flash Live 001