web-fetch-tool changedagents-and-tools/tool-use/web-fetch-tool
Nearest release: v2.1.315, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+4added
Lines−5removed
From line
495
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
The whole hunk
from line 495, old and new numbered
/
from line 495
495495
496496### Content limits
497497
498The `max_content_tokens` parameter limits the amount of content included in the context. If the fetched content exceeds this limit, the tool truncates it. This helps control token usage when fetching large documents. The limit applies to text content, not to binary content such as PDFs.
498The `max_content_tokens` parameter limits the amount of content included in the context. If the fetched content exceeds this limit, the tool truncates it. This helps control token usage when fetching large documents. The limit is approximate: the actual number of input tokens used can vary by a small amount. The limit applies to text content, not to binary content such as PDFs.
499499
500<Note>
501 The `max_content_tokens` parameter limit is approximate. The actual number of input tokens used can vary by a small amount.
502</Note>
500If a fetched PDF would make the request exceed the [PDF page or size limits](https://platform.claude.com/docs/en/build-with-claude/pdf-support#check-pdf-requirements), the `web_fetch_tool_result` is an error with the `content_too_large` error code. PDFs and images already in the conversation count toward those limits, so removing them can let the fetch succeed.
503501
504502On Claude Managed Agents, the `web_fetch` entry of the agent toolset also accepts `max_content_tokens`; see the [web tool settings](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#settings).
505503
from line 682
684682* `url_not_accessible`: Failed to fetch content (HTTP error)
685683* `too_many_requests`: Rate limit exceeded
686684* `unsupported_content_type`: Content type not supported (only text, HTML, and PDF)
685* `content_too_large`: Fetched PDF would make the request exceed the PDF page or size limits (see [Content limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool#content-limits))
687686* `max_uses_exceeded`: Maximum web fetch tool uses exceeded
688687* `unavailable`: An internal error occurred
689688
No line in this hunk matches that.