{"id":93441,"date":"2025-08-19T03:55:18","date_gmt":"2025-08-19T03:55:18","guid":{"rendered":"https:\/\/www.newsbeep.com\/us\/93441\/"},"modified":"2025-08-19T03:55:18","modified_gmt":"2025-08-19T03:55:18","slug":"url-context-tool-for-gemini-api-now-generally-available","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/us\/93441\/","title":{"rendered":"URL context tool for Gemini API now generally available"},"content":{"rendered":"<p data-block-key=\"v2zic\">Starting today, the <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/url-context\" rel=\"nofollow noopener\" target=\"_blank\">URL context tool<\/a> is now ready for scaled production use and comes packed with new features. The tool enables developers to provide additional context to the models in the form of URLs, instead of manually uploading the content, unlocking more powerful and contextually-aware generative AI applications.<\/p>\n<p data-block-key=\"4mtek\">By default, Gemini models have a static knowledge base and no direct internet access. <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/google-search\" rel=\"nofollow noopener\" target=\"_blank\">Grounding with Google Search<\/a> connects them to the web for broad, real-time discovery. For a deeper analysis, the <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/url-context\" rel=\"nofollow noopener\" target=\"_blank\">URL context tool<\/a> goes beyond <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/snippet\" rel=\"nofollow noopener\" target=\"_blank\">search snippets<\/a>, allowing the model to ingest and reason over the full content of a specific webpage. This powerful combination\u2014using Search to discover and URL Context to analyze\u2014is the foundation for sophisticated, multi-step tasks.<\/p>\n<p>More versatility with expanded content support<\/p>\n<p data-block-key=\"4r635\">With this launch, the URL context tool significantly expands the types of content you can ground your prompts in, making it more versatile for a wider range of applications. Support now includes:<\/p>\n<p>PDF support: You can now provide direct links to PDFs, enabling Gemini to not only extract text but also understand tables and the overall structure within them, making reports, papers, and manuals fully accessible for grounding.Image support: The tool can now process and analyze images, including PNG, JPEG, BMP, and WebP formats. This leverages Gemini&#8217;s multimodal capabilities to comprehend visual information, opening doors for analysis of charts, diagrams, and more.Web and data files: Continued robust support for standard web pages (HTML), structured data (JSON, XML, CSV), and text files (Plain Text, RTF, CSS, JavaScript).<br \/>Ready for production scale<\/p>\n<p data-block-key=\"9q9mb\">To ensure you can use these expanded capabilities in your applications, the URL Context tool is now ready for scaled production use with updated limits and pricing. Rate limits are now based on the specific <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/url-context#supported-models\" rel=\"nofollow noopener\" target=\"_blank\">Gemini model<\/a> you choose, allowing for much greater scale. You are charged for the added input tokens to context, based on the <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/pricing\" rel=\"nofollow noopener\" target=\"_blank\">standard rate for the model<\/a>. This makes your costs clear and predictable.<\/p>\n<p>Unlocking new use cases<\/p>\n<p data-block-key=\"6mn1b\">The URL context tool opens up a wide range of agentic workflows for developers. Here are just a few of the use cases you can now build:<\/p>\n<p>Personalize customer interactions: Ground AI chat agents with customers\u2019 web pages enabling them to provide accurate and relevant answers to inquiries.Compare documents: Analyze multiple reports, articles, or PDFs to identify differences and track trends.Synthesize &amp; create content: Combine information from several source URLs to generate accurate summaries, blog posts, or reports.Analyze code &amp; docs: Point to a GitHub repository or technical documentation to explain code, generate setup instructions, or answer technical questions.<br \/>URL context in action<\/p>\n<p data-block-key=\"4r7n0\">We&#8217;re already seeing developers build amazing things with the URL context tool. Here are a couple of real world examples:<\/p>\n<p data-block-key=\"ausk4\"><a href=\"https:\/\/github.com\/google-gemini\/gemini-cli\/blob\/main\/docs\/tools\/web-fetch.md\" rel=\"nofollow noopener\" target=\"_blank\">Gemini CLI<\/a>: The Gemini CLI, an open source AI agent that provides access to Gemini directly in your terminal, uses the URL context tool for its web-fetch command to enable developers to quickly and easily interact with web content for use cases like summarizing a webpage, extracting key information, or even translating it into another language.<\/p>\n<p>                <img decoding=\"async\" class=\"regular-image\" src=\"https:\/\/www.newsbeep.com\/us\/wp-content\/uploads\/2025\/08\/web-fetch-tool-gemini-cli.original.png\" alt=\"Web fetch tool in Gemini CLI\"\/><\/p>\n<p>\n                        Web fetch tool in Gemini CLI\n                    <\/p>\n<p data-block-key=\"j7vdd\"><a href=\"http:\/\/gladly.ai\/\" rel=\"nofollow noopener\" target=\"_blank\">Gladly.ai<\/a>: Gladly, a customer service platform, uses the URL context tool to create highly personalized customer experiences. By providing links to their customers&#8217; websites, agents built on Gladly\u2019s AI platform can access and understand the latest product information, promotions, and support articles, enabling them to provide more accurate and relevant answers to customer inquiries.<\/p>\n<p>Get started today<\/p>\n<p data-block-key=\"74qtv\">Ready to start building with the URL context tool? Here\u2019s an example to get you started:<\/p>\n<p>    from google import genai&#13;<br \/>\nfrom google.genai.types import Tool, GenerateContentConfig&#13;<br \/>\nclient = genai.Client()&#13;<br \/>\n&#13;<br \/>\nmodel_id = &#8220;gemini-2.5-flash&#8221;&#13;<br \/>\ntools = [&#13;<br \/>\n     {&#8220;url_context&#8221;: {}},&#13;<br \/>\n ]&#13;<br \/>\n&#13;<br \/>\n&#13;<br \/>\nresponse = client.models.generate_content(&#13;<br \/>\n    model=model_id,&#13;<br \/>\n    contents=&#8221;What are the top 3 recent announcements from the Gemini API according to https:\/\/ai.google.dev\/gemini-api\/docs\/changelog&#8221;,&#13;<br \/>\n    config=GenerateContentConfig(&#13;<br \/>\n        tools=tools,&#13;<br \/>\n    )&#13;<br \/>\n)&#13;<br \/>\nfor each in response.candidates[0].content.parts:&#13;<br \/>\n   print(each.text)<\/p>\n<p>\n        Python\n    <\/p>\n","protected":false},"excerpt":{"rendered":"Starting today, the URL context tool is now ready for scaled production use and comes packed with new&hellip;\n","protected":false},"author":2,"featured_media":93442,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[182,181,507,74],"class_list":{"0":"post-93441","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-artificial-intelligence","8":"tag-ai","9":"tag-artificial-intelligence","10":"tag-artificialintelligence","11":"tag-technology"},"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/93441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/comments?post=93441"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/93441\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media\/93442"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media?parent=93441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/categories?post=93441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/tags?post=93441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}