Loading...
Loading...
Enables grounded question answering by automatically executing the Google Search tool within Gemini models. Use when the required information is recent (post knowledge cutoff) or requires verifiable citation.
npx skill4agent add aaaaqwq/claude-code-skills google-web-searchgoogle_searchgoogle_searchscripts/example.pygemini-2.5-flash-litegemini-2.5-flash-litegemini-3-flash-previewgemini-3-pro-previewgemini-2.5-flash-lite-preview-09-2025google-genaiGEMINI_API_KEYfrom skills.google-web-search.scripts.example import get_grounded_response
# Basic usage (uses default model):
prompt = "What is the latest market trend?"
response_text = get_grounded_response(prompt)
print(response_text)
# Using a specific model:
response_text = get_grounded_response(prompt, model="gemini-3-pro-preview")
print(response_text)
# Or set via environment variable:
import os
os.environ["GEMINI_MODEL"] = "gemini-3-flash-preview"
response_text = get_grounded_response(prompt)
print(response_text)GEMINI_API_KEYgoogle-genaipip install google-generativeaiGEMINI_MODELgoogle_search