🌐 Web Tools

Three scripts for web search and content extraction. All pre-installed in image v11.0+ — no per-generation pip needed.

web_search.py

Query the web via Brave Search; get titles, URLs, snippets.

web_fetch.py

HTTP GET a URL and extract main text (strips boilerplate via trafilatura). Use this first for normal articles and docs — fast and lightweight.

web_render_fetch.py

Open a URL in headless Chromium and extract rendered page text. Use only when web_fetch.py cannot read a page because content is JS-rendered.

Strategy: Use web_search.py to discover, web_fetch.py for the broad sweep, then retry important failures individually with web_render_fetch.py.