Search the web using the Google Custom Search JSON API. The skill fetches more results than requested, scrapes each page, scores the extracted content, and returns only the highest-quality matches to the AI.
Class: WebSearchSkill
Tools: web_search (configurable via tool_name)
Env vars: GOOGLE_SEARCH_API_KEY, GOOGLE_SEARCH_ENGINE_ID (legacy
GOOGLE_SEARCH_CX is still accepted)
Multi-instance: yes — instance key combines search_engine_id and
tool_name.
Google Custom Search API key. Falls back to the GOOGLE_SEARCH_API_KEY
environment variable.
Google Custom Search Engine ID. Falls back to the
GOOGLE_SEARCH_ENGINE_ID environment variable (or the legacy
GOOGLE_SEARCH_CX).
Custom tool name for this Web Search instance (useful when registering multiple instances at once).
Number of high-quality results to return (range 1-10).
Delay between scraping pages in seconds (minimum 0).
Maximum total response size in characters (minimum 1000).
How many extra results to fetch for quality filtering — e.g. 2.5 fetches
2.5× the requested num_results before scoring. Range 1.0-3.5.
Minimum quality score (0–1) required to include a result.
Message returned when no quality results are found. Use {query} as a
placeholder for the original search term.
Safe-search level. One of "off", "medium", "high".