Claude API: Web fetch tool
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Anthropic shipped a URL-fetching tool for Claude with a safety mechanism against data exfiltration that Willison shows is weaker than it looks.
Anthropic added a web fetching tool to its Claude API, released 10 September 2025 under a beta header called web-fetch-2025-09-10. When enabled, Claude can read the full text of webpages and PDFs from URLs as part of answering a prompt. To block abuse, Claude cannot make up its own URLs; it can only fetch ones the user provided or from earlier search results. Bloggers and developers building AI assistants are the main audience.
Anthropic's new web_fetch tool, available via the web-fetch-2025-09-10 beta header, lets Claude retrieve webpage and PDF content within API responses. Simon Willison warns the safety design is leaky: URLs embedded in user messages and client-side tool results still count as trusted, creating data exfiltration risk in apps mixing untrusted input with sensitive data. Domain allow-listing is the stronger control, though choosing safe domains is tricky.
Enable via beta header web-fetch-2025-09-10 with tool config {"type": "web_fetch_20250910", "name": "web_fetch", "max_uses": 5}; it extracts full text from HTML and PDFs. Anthropic blocks Claude-constructed URLs to prevent exfiltration, but accepts URLs from user messages, client-side tool results, and prior search/fetch results, all potentially injection-controlled. Exact-match URL restrictions defeat the evil.com/log?payload exfiltration pattern; "allowed_domains" allow-listing is the stronger mitigation.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Claude web-fetch-2025-09-10 web_fetch Anthropic Datasette Mozilla Django HTTP Debug
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.
System-wide ad-blocking that catches trackers browser extensions can't
Desktop apps and OS components can now be ad-blocked system-wide, not just browser traffic, closing a privacy gap browser extensions cannot reach.
n8n's open source personal agent runs on your machine and asks before it acts
Developers uneasy about cloud-based AI agents get a local, approval-gated alternative they can download today, though its research-preview status limits real reliance.
A flight recorder for AI agents that even auditors can verify offline
Teams running AI agents on production systems get tamper-evident, auditor-verifiable records of every tool call instead of logs the agent could rewrite.