web-fetch-tool changedagents-and-tools/tool-use/web-fetch-tool
Nearest release: v2.1.310, published 11 hours after 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+6added
Lines−6removed
From line
426
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits20to this page, all time
The whole hunk
from line 426, old and new numbered
/
from line 426
426426 "type": "web_fetch_20250910",
427427 "name": "web_fetch",
428428
429 // Optional: Limit the number of fetches per request
429 // Optional: Limit the number of fetches for each request
430430 "max_uses": 10,
431431
432432 // Optional: Only fetch from these domains
from line 524
524524
525525Here's an example response structure:
526526
527```text Output
527```json Output
528528{
529529 "role": "assistant",
530530 "content": [
from line 608
608608
609609For PDF documents, content is returned as base64-encoded data:
610610
611```text Output wrap
611```json Output
612612{
613613 "type": "web_fetch_tool_result",
614614 "tool_use_id": "srvtoolu_02",
from line 633
633633
634634When the web fetch tool encounters an error, the Claude API returns a 200 (success) response with the error represented in the response body. Claude receives the error result and continues the turn. For example:
635635
636```text Output wrap
636```json Output
637637{
638638 "type": "web_fetch_tool_result",
639639 "tool_use_id": "srvtoolu_a93jad",
from line 962
962962
963963With streaming enabled, fetch events are part of the stream with a pause during content retrieval:
964964
965```text Output
965```sse Output
966966event: message_start
967967data: {"type": "message_start", "message": {"id": "msg_abc123", "type": "message"}}
968968
from line 995
995995
996996Web fetch usage has **no additional charges** beyond standard token costs:
997997
998```text wrap
998```json
999999{
10001000 "usage": {
10011001 "input_tokens": 25039,
No line in this hunk matches that.