fetch_html
Retrieve a website's raw HTML content by providing a URL, with options to set custom headers, limit response length, or skip to a specific character offset.
Instructions
Fetch a website and return its unmodified contents as HTML.
Args: url: URL of the website to fetch headers: Optional headers to include in the request max_length: Maximum number of characters to return (default: 50000) start_index: Start content from this character index (default: 0)
Returns: The raw HTML content of the webpage
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "fetch_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| headers | No | ||
| max_length | No | ||
| start_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |