web_fetch(url, max_chars?): http(s) GET, HTML to text (html2text), 2 MB body cap, 20k char output cap, 5 redirects each re-checked. SSRF guard blocks non-http schemes and loopback/private/link-local/CGNAT/ULA addresses (also IPv4-mapped). Output wrapped in <web_content url=...>. Asks permission once per domain ("allow always" stores web:<host> in .hx/allow.json).
web_search(query, limit?): Brave (default, $BRAVE_API_KEY) or SearXNG ([web] searxng_url). Brave without key falls back to SearXNG if a URL is set; neither = tool not registered. SearXNG 403 gives a hint about search.formats: json.
Config: [web] search = "brave"|"searxng", searxng_url. Documented in config.sample.toml.
Not done: stats counters per web tool, caching, JS rendering, DNS pinning (ponytail comment in web.rs).
Tests: 4 web unit tests (fake server: redirect, html, binary, truncation, SSRF, searxng, 403 hint, backend pick) + permit test. clippy/fmt clean; e2e scripts pass. tests/tui_smoke.py has 2-3 FAILs that also occur on main.
Adds two tools.
- `web_fetch(url, max_chars?)`: http(s) GET, HTML to text (html2text), 2 MB body cap, 20k char output cap, 5 redirects each re-checked. SSRF guard blocks non-http schemes and loopback/private/link-local/CGNAT/ULA addresses (also IPv4-mapped). Output wrapped in `<web_content url=...>`. Asks permission once per domain ("allow always" stores `web:<host>` in .hx/allow.json).
- `web_search(query, limit?)`: Brave (default, `$BRAVE_API_KEY`) or SearXNG (`[web] searxng_url`). Brave without key falls back to SearXNG if a URL is set; neither = tool not registered. SearXNG 403 gives a hint about `search.formats: json`.
Config: `[web] search = "brave"|"searxng"`, `searxng_url`. Documented in config.sample.toml.
Not done: stats counters per web tool, caching, JS rendering, DNS pinning (ponytail comment in web.rs).
Tests: 4 web unit tests (fake server: redirect, html, binary, truncation, SSRF, searxng, 403 hint, backend pick) + permit test. clippy/fmt clean; e2e scripts pass. tests/tui_smoke.py has 2-3 FAILs that also occur on main.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds two tools.
web_fetch(url, max_chars?): http(s) GET, HTML to text (html2text), 2 MB body cap, 20k char output cap, 5 redirects each re-checked. SSRF guard blocks non-http schemes and loopback/private/link-local/CGNAT/ULA addresses (also IPv4-mapped). Output wrapped in<web_content url=...>. Asks permission once per domain ("allow always" storesweb:<host>in .hx/allow.json).web_search(query, limit?): Brave (default,$BRAVE_API_KEY) or SearXNG ([web] searxng_url). Brave without key falls back to SearXNG if a URL is set; neither = tool not registered. SearXNG 403 gives a hint aboutsearch.formats: json.Config:
[web] search = "brave"|"searxng",searxng_url. Documented in config.sample.toml.Not done: stats counters per web tool, caching, JS rendering, DNS pinning (ponytail comment in web.rs).
Tests: 4 web unit tests (fake server: redirect, html, binary, truncation, SSRF, searxng, 403 hint, backend pick) + permit test. clippy/fmt clean; e2e scripts pass. tests/tui_smoke.py has 2-3 FAILs that also occur on main.