Fetch URL
fetch_urlRetrieves a web page via HTTP GET and returns its status, headers, and text body. Use it to read content from allowlisted hosts, with optional byte limits and no binary payloads.
Instructions
Fetch a URL with HTTP GET and return the status, headers and text body.
Only hosts on the server's allowlist can be reached, including for redirects. Binary bodies are not returned, only their size.
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": "fetch_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL on an allowed host. | |
| max_bytes | No | Truncate the body after this many bytes (capped by server). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Final URL after redirects. | |
| text | Yes | Decoded body for textual content types, else null. | |
| headers | Yes | ||
| truncated | Yes | True if the body was cut off at the size limit. | |
| bytes_read | Yes | ||
| status_code | Yes | ||
| content_type | Yes |