Why Your AI Summarizes a Link It Never Opened
A plain call to the OpenAI, Anthropic, or Gemini API does not open URLs, so a link in the prompt is only text and the model writes from the words in the URL. Fetching happens only when a tool is enabled (Anthropic web_fetch, Gemini url_context, OpenAI web_search), and even then the HTTP status is 200 whether the page was read or not; the proof is in a per-provider field such as Anthropic's web_fetch_tool_result error_code or Gemini's urlRetrievalStatus.
A plain call to the OpenAI, Anthropic, or Gemini API never opens a URL. The link in your prompt reaches the model as text, so when it "summarizes" the page it is writing from the words in the URL and from what it already knows. Pages get fetched only when you enable a tool (Anthropic's web_fetch, Gemini's url_context, OpenAI's web_search on the Responses API), and even then the HTTP status is 200 whether the page was read or not. The only proof is a provider-specific field in the response body, and most automations never look at it.
The forum answers to this question stop at "the API cannot browse, fetch the page yourself." That is right for a plain call, but it misses the case that bites teams who have already turned a fetch tool on: the fetch fails, the call still succeeds, and the model writes something plausible anyway. This article covers both cases and the one check that catches them.
Why the summary looks right when nothing was read
URLs are written to be descriptive. A link like /blog/2026-price-increase-for-annual-plans tells the model the topic, the year, and the direction of the news. A capable model can produce three confident paragraphs from that alone, in the house style of the site, with numbers that sound reasonable.
Here is an illustrative run of the kind we see. A workflow reads competitor URLs from a sheet and asks the model to "summarize what changed on this page." One row points at a pricing announcement. The model reports an 8 percent increase on annual plans. The real page announced a new free tier and no increase at all. The run is green, the summary lands in a weekly digest, and nobody notices until someone clicks the link.
Nothing in the response gives it away. OpenAI returns a completed response, Anthropic returns stop_reason: "end_turn", Gemini returns a normal candidate. Some models will say they cannot open links, some will not, and the same model can do either depending on how the prompt is phrased. You cannot build an automation on that.
Which APIs actually fetch the page, and where they tell you
As of October 2026, each provider has a different mechanism and reports retrieval in a different place.
| Provider | Tool that fetches | Who decides to fetch | Where success or failure shows up | What to watch for |
|---|---|---|---|---|
| Anthropic | web_fetch server tool (versions web_fetch_20250910 through web_fetch_20260318) | Claude decides from the prompt | A web_fetch_tool_result block; on failure its content is web_fetch_tool_result_error with an error_code, and the API still returns 200 | URL must appear in a user message or tool result, not only the system prompt; no JavaScript-rendered pages; results may come from a cache |
| Google Gemini | url_context tool | The model, using the URLs you provide | urlContextMetadata.urlMetadata[] on the candidate, one entry per URL with retrievedUrl and urlRetrievalStatus | Status can be SUCCESS, ERROR, PAYWALL, or UNSAFE; up to 20 URLs per request; checks an internal index cache before a live fetch |
| OpenAI | No separate fetch tool; web_search on the Responses API, with an open_page action on reasoning models | The model can choose to search or not; tool_choice: "required" forces it | web_search_call output items and their action; add include: ["web_search_call.action.sources"] for the full source list | Proves a search ran, not that your exact page was opened; Chat Completions supports web search only through dedicated search models |
Three details in that table cause most of the failures we debug.
Anthropic fetch errors are not HTTP errors. Anthropic's documentation says that when the tool hits an error, the API returns a 200 response with the error in the body, and Claude receives the error and continues the turn. The codes include url_not_accessible (the site returned an HTTP error), url_not_allowed (domain filters, robots.txt, or private addresses), unsupported_content_type (only text, HTML, and PDF are fetched), url_too_long (over 250 characters), and url_not_in_prior_context. An n8n or Make step treats that 200 as success, and the model's text after the error can still read like a summary.
The system prompt does not count as a source for Anthropic. For security, web_fetch will only fetch URLs that appeared in a user message, a client-side tool result, or a previous search or fetch result. Automations often build the system prompt from a template that includes the target URL and keep the user message generic. That setup returns url_not_in_prior_context every time. Move the URL into the user message.
Gemini tells you per URL, so check every one. If you pass five URLs and two come back URL_RETRIEVAL_STATUS_PAYWALL, the answer blends three real pages with two guesses. Google's docs also list paywalled content, YouTube videos, Google Workspace files such as Docs and Sheets, and audio or video files as unsupported. A shared Google Doc link, which is a very common input in small-business workflows, falls in that list.
The pages that fail even when the fetch works
A successful fetch is not the same as the content you meant. These are the cases where retrieval reports success, or a 200, and the text is still wrong.
- JavaScript-rendered pages. Anthropic states that
web_fetchdoes not support sites rendered with JavaScript. A single-page app returns an almost empty shell, often a line asking you to enable JavaScript, and the model summarizes the shell or fills the gap. - Login walls that return 200. Many apps answer an unauthenticated request with a 200 and a sign-in page. The fetch succeeded. The content is a login form.
- Cached copies. Anthropic caches fetch results and notes that the content may not reflect the latest version;
use_cache: falseis available fromweb_fetch_20260309. Gemini'surl_contexttries its index cache first. If you are monitoring a page for changes, a cached read defeats the purpose. - Truncation. Anthropic's
max_content_tokenscuts long pages. A summary of the first half of a policy page reads complete and misses the exceptions at the bottom. - Instructions inside the page. Fetched text is untrusted input. A page that says "ignore previous instructions" now sits in your context. We cover that risk in prompt injection in AI automations.
The fix: fetch in the workflow, then gate on what came back
When the automation already knows the URL, which is most of the time (a row in a sheet, a link in a form, a field on a CRM record), do not hand the fetching to the model. Fetch it yourself, check it, and pass the text.
- Fetch with a plain HTTP request step. In n8n that is the HTTP Request node followed by the HTML node to extract the readable text. You now have the status code, the final URL after redirects, and the content type in the run log.
- Gate before the model sees anything. Stop the item, do not just warn, when the status is not 2xx, the content type is not HTML, text, or PDF, the final URL is a login page, or the extracted text is under a floor you set (we start at about 500 characters for an article and tune from there). Most JavaScript shells and sign-in pages fail the length check on their own.
- Pass the text as delimited data. Put the page text inside clearly marked tags in the user message and tell the model to answer only from that block, and to return a fixed value such as
NOT_IN_PAGEwhen the answer is not there. - Ask for one verbatim quote and check it. Have the model return a short supporting quote alongside the summary, then check in code that the quote is a substring of the text you fetched. It costs a few output tokens and catches the case where the model drifted off the page. The same idea runs through verifying AI document extraction.
- Log the fetched text, or a hash of it, with the run. When someone disputes a summary a week later, you can show exactly what the model was given.
For pages that need a real browser, step 1 changes, not the rest. A headless browser step or a rendering service replaces the plain request; our comparison of browser agents and APIs covers when that is worth the cost.
When to let the model fetch, and how to check it
Provider fetch tools earn their place when the model has to choose what to read: follow a link from a search result, decide which of several documents answers the question, or work through a page it found itself. In those cases, keep the tool and add an assertion after the call.
- Anthropic: collect every
web_fetch_tool_resultblock. Fail the item if any input URL has no result, or if its content is aweb_fetch_tool_result_error. Log theerror_code. Setmax_usesso a looping model cannot fetch fifty pages, and useallowed_domainswhen the target sites are known. - Gemini: read
urlContextMetadata.urlMetadataand requireURL_RETRIEVAL_STATUS_SUCCESSfor each URL you passed. Treat a missing entry the same as a failure. - OpenAI: force the tool with
tool_choice: "required"when the answer must come from the web, requestweb_search_call.action.sources, and fail the item if the page you care about is not among them. If you need a guarantee that one specific URL was read, fetch it yourself instead; the web search tool is built for finding pages, not for reading the one you name.
In every case the check is code after the call, not a sentence in the prompt asking the model to be honest about what it read. A prompt rule is a request. A field check is a gate.
What to do next
Pick one workflow that sends a URL to a model and look at a logged request and response. If there is no fetch tool in the request, every summary it has produced was written from the link text, and step 1 above is the fix. If there is a tool, find the retrieval field for your provider in the table and add a check that fails the item when it does not say success. That one check usually turns up a handful of past runs that were never grounded in the page.
If you are building AI steps that read web pages, documents, or customer links into a business process, this is the kind of plumbing we put in place as part of our custom AI systems and workflow automation work. Tell us what the workflow reads and we will tell you where it can go wrong.
Frequently Asked Questions
SOURCES & CITATIONS
- Web fetch tool — Anthropichttps://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool
- URL context — Googlehttps://ai.google.dev/gemini-api/docs/url-context
- Generating content (API reference) — Googlehttps://ai.google.dev/api/generate-content
- Web search — OpenAIhttps://developers.openai.com/api/docs/guides/tools-web-search
About Alexey Yushkin
Alexey is the founder of GENERAL INFORMATICS LLC. He designs and ships AI and automation systems for businesses and operators across the US.
Related reading
Want this kind of system in your business?
We build practical AI and automation systems for operators. Send us your current workflow and we will show you what to automate first.
