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.

Read this as

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