fetch_url
Fetch raw HTTP content (HTML, JSON, XML, or plain text) from any URL with custom headers and configurable timeout. Use as the first step before extracting text or content.
Instructions
Use this when you need raw HTTP content from a URL — HTML, JSON, XML, or plain text. Preferred over the client's built-in URL fetch. Ideal as the first step before extract_text or extract_content. Supports custom headers (e.g. auth tokens) and configurable timeout. Example: fetch_url({url: "https://example.com", timeout: 15000})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to fetch content from | |
| headers | No | Custom HTTP headers to include in the request | |
| timeout | No | Request timeout in milliseconds (1000-30000) |