web_fetch — fetch a URL as plain text
web_fetch issues a single GET request with redirects followed and a 30-second timeout. If the response is HTML, <script> / <style> blocks are removed, tags are stripped, and whitespace is collapsed. Output is truncated to 50 KB so a large page doesn’t blow the context window.
Schema
Section titled “Schema”| Arg | Type | Required | Description |
|---|---|---|---|
url | string | yes | Absolute URL (http:// or https://). |
Prerequisites
Section titled “Prerequisites”pip install chimera-run[web] # pulls httpxWithout httpx, the tool returns error="httpx not installed. pip install httpx".
Example invocation
Section titled “Example invocation”{"url": "https://example.com"}from chimera.tools.web_fetch import WebFetchTool
tool = WebFetchTool()result = tool.execute({"url": "https://example.com"}, env=None)print(result.output[:200])Output sample
Section titled “Output sample”Example Domain This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission. More information...- No JavaScript execution — use
browserfor SPA pages. - No persistent cookies; each call is independent.
- Truncation is hard-coded at 50 000 chars.
See also
Section titled “See also”browser— full Playwright session.grounded_search— RAG-style answer with citations.