Web fetch
web_fetchFetch a URL for an agent and get the response as sent: HTTP status, content type, key headers, the redirect chain, timing and the raw body (HTML, JSON, XML or text, up to 500 KB). For public JSON APIs, registry entries, raw source files, feeds and sitemaps. Use /web/extract for a page or PDF as clean Markdown, /docs/package for a package's docs. Public http(s) URLs only. Costs $0.002 USDC on Base via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "web_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | number, e.g. 8 | |
| url | No | string, e.g. "https://example.org/" | |
| body | No | string, e.g. "<!doctype html><html lang=en><head><meta charset=utf-8><lin | |
| bytes | No | number, e.g. 577 | |
| notes | No | string, e.g. "One GET from Cloudflare's network, redirects followed (each | |
| status | No | number, e.g. 200 | |
| headers | No | object | |
| finalUrl | No | string, e.g. "https://example.org/" | |
| fetchedAt | No | string, e.g. "2026-11-10T13:43:24.367Z" | |
| redirects | No | array | |
| truncated | No | boolean, e.g. false | |
| contentType | No | string, e.g. "text/html; charset=utf-8" |