fetch-url
Retrieve web content from a specified URL using customizable HTTP methods, headers, and response types. Supports handling redirects, timeouts, and parsing text, JSON, or binary data.
Instructions
Fetch content from a URL
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | No | Request body for POST/PUT/PATCH requests | |
followRedirects | No | Whether to follow redirects | |
headers | No | HTTP headers | |
method | No | HTTP method | GET |
responseType | No | How to parse the response | text |
timeout | No | Request timeout in milliseconds | |
url | Yes | URL to fetch |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"description": "Request body for POST/PUT/PATCH requests",
"type": "string"
},
"followRedirects": {
"default": true,
"description": "Whether to follow redirects",
"type": "boolean"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"description": "HTTP headers",
"type": "object"
},
"method": {
"default": "GET",
"description": "HTTP method",
"enum": [
"GET",
"POST",
"PUT",
"DELETE",
"HEAD",
"OPTIONS",
"PATCH"
],
"type": "string"
},
"responseType": {
"default": "text",
"description": "How to parse the response",
"enum": [
"text",
"json",
"binary",
"html-fragment"
],
"type": "string"
},
"timeout": {
"description": "Request timeout in milliseconds",
"type": "number"
},
"url": {
"description": "URL to fetch",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}