fetch_url
Retrieve web content from any URL, returning status code, headers, and body. Adjust timeout, redirects, and user agent as needed.
Instructions
Fetches content from a URL.
Args: url: The URL to fetch timeout: Request timeout in seconds (default: 30) follow_redirects: Whether to follow redirects (default: True) user_agent: Custom user agent string (optional)
Returns: Dictionary containing status_code, content, headers, encoding, and error (if any)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| timeout | No | ||
| user_agent | No | ||
| follow_redirects | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||