Provide web URLs as context for Gemini models
Official documentation: https://ai.google.dev/gemini-api/docs/url-contextThe URL context tool allows you to provide additional context to the model in the form of URLs. By adding URLs to your request, the model will access the content from those web pages to inform and improve the quality of its responses.
role (string): Role (user or model)parts (array): Content parts arrayurlContext (object): Enable URL context capability
urls (array): Array of URLs to use as contexttemperature (number): Sampling temperaturetopP (number): Nucleus sampling parameter