web_check_url
Checks if a URL exists and is accessible via HEAD/GET requests. Validates links before including them in documents to ensure they return a valid response.
Instructions
Check if a URL exists and is accessible.
Performs a HEAD request (or GET if HEAD fails) to verify the URL returns a valid response. Useful for validating links before including them in documents.
Example: web_check_url(url="https://example.com/page")
web_check_url(
url="https://docs.microsoft.com/...",
timeout=5,
follow_redirects=True
)Args: url: The URL to check timeout: Request timeout in seconds (default: 10) follow_redirects: Whether to follow redirects (default: True)
Returns: Dictionary with exists, status_code, final_url, and content_type
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to check | |
| timeout | No | Request timeout in seconds (default: 10) | |
| follow_redirects | No | Whether to follow redirects (default: True) |