fetch_url
Retrieve content from a URL with specified response type and timeout, ensuring proper error handling and response processing for streamlined data extraction.
Instructions
Fetch content from a URL with proper error handling and response processing
Input Schema
Name | Required | Description | Default |
---|---|---|---|
responseType | No | Expected response type | text |
timeout | No | Request timeout in milliseconds | |
url | Yes | The URL to fetch |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"responseType": {
"default": "text",
"description": "Expected response type",
"enum": [
"text",
"json",
"html",
"markdown"
],
"type": "string"
},
"timeout": {
"default": 30000,
"description": "Request timeout in milliseconds",
"maximum": 60000,
"minimum": 1000,
"type": "number"
},
"url": {
"description": "The URL to fetch",
"format": "uri",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}