Skip to content

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.

ArgTypeRequiredDescription
urlstringyesAbsolute URL (http:// or https://).
Terminal window
pip install chimera-run[web] # pulls httpx

Without httpx, the tool returns error="httpx not installed. pip install httpx".

{"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])
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 browser for SPA pages.
  • No persistent cookies; each call is independent.
  • Truncation is hard-coded at 50 000 chars.