Beginning right this moment, the URL context instrument is now prepared for scaled manufacturing use and comes full of new options. The instrument permits builders to supply extra context to the fashions within the type of URLs, as a substitute of manually importing the content material, unlocking extra highly effective and contextually-aware generative AI purposes.
By default, Gemini fashions have a static data base and no direct web entry. Grounding with Google Search connects them to the online for broad, real-time discovery. For a deeper evaluation, the URL context instrument goes past search snippets, permitting the mannequin to ingest and purpose over the complete content material of a selected webpage. This highly effective mixture—utilizing Search to find and URL Context to investigate—is the muse for classy, multi-step duties.
Extra versatility with expanded content material assist
With this launch, the URL context instrument considerably expands the forms of content material you possibly can floor your prompts in, making it extra versatile for a wider vary of purposes. Assist now contains:
- PDF assist: Now you can present direct hyperlinks to PDFs, enabling Gemini to not solely extract textual content but in addition perceive tables and the general construction inside them, making stories, papers, and manuals absolutely accessible for grounding.
- Picture assist: The instrument can now course of and analyze photographs, together with PNG, JPEG, BMP, and WebP codecs. This leverages Gemini’s multimodal capabilities to understand visible data, opening doorways for evaluation of charts, diagrams, and extra.
- Net and knowledge information: Continued strong assist for normal internet pages (HTML), structured knowledge (JSON, XML, CSV), and textual content information (Plain Textual content, RTF, CSS, JavaScript).
Prepared for manufacturing scale
To make sure you need to use these expanded capabilities in your purposes, the URL Context instrument is now prepared for scaled manufacturing use with up to date limits and pricing. Charge limits are actually based mostly on the particular Gemini mannequin you select, permitting for a lot better scale. You might be charged for the added enter tokens to context, based mostly on the commonplace fee for the mannequin. This makes your prices clear and predictable.
Unlocking new use circumstances
The URL context instrument opens up a variety of agentic workflows for builders. Listed here are only a few of the use circumstances now you can construct:
- Personalize buyer interactions: Floor AI chat brokers with prospects’ internet pages enabling them to supply correct and related solutions to inquiries.
- Evaluate paperwork: Analyze a number of stories, articles, or PDFs to determine variations and observe traits.
- Synthesize & create content material: Mix data from a number of supply URLs to generate correct summaries, weblog posts, or stories.
- Analyze code & docs: Level to a GitHub repository or technical documentation to clarify code, generate setup directions, or reply technical questions.
URL context in motion
We’re already seeing builders construct superb issues with the URL context instrument. Listed here are a few actual world examples:
Gemini CLI: The Gemini CLI, an open supply AI agent that gives entry to Gemini immediately in your terminal, makes use of the URL context instrument for its web-fetch command to allow builders to shortly and simply work together with internet content material to be used circumstances like summarizing a webpage, extracting key data, and even translating it into one other language.
Net fetch instrument in Gemini CLI
Gladly.ai: Gladly, a customer support platform, makes use of the URL context instrument to create extremely personalised buyer experiences. By offering hyperlinks to their prospects’ web sites, brokers constructed on Gladly’s AI platform can entry and perceive the newest product data, promotions, and assist articles, enabling them to supply extra correct and related solutions to buyer inquiries.
Get began right this moment
Prepared to begin constructing with the URL context instrument? Right here’s an instance to get you began:
from google import genai
from google.genai.sorts import Software, GenerateContentConfig
consumer = genai.Shopper()
model_id = "gemini-2.5-flash"
instruments = [
{"url_context": {}},
]
response = consumer.fashions.generate_content(
mannequin=model_id,
contents="What are the highest 3 current bulletins from the Gemini API in keeping with https://ai.google.dev/gemini-api/docs/changelog",
config=GenerateContentConfig(
instruments=instruments,
)
)
for every in response.candidates[0].content material.components:
print(every.textual content)
Python







