fetch_with_headers
Fetch web page content using custom HTTP headers. Specify URL, headers, and optional timeout to retrieve status, content, and response details.
Instructions
Fetches a URL with custom headers.
Args: url: The URL to fetch headers: Dictionary of custom headers timeout: Request timeout in seconds (default: 30)
Returns: Dictionary containing status_code, content, headers, encoding, and error (if any)
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>",
"headers": "<headers>"
},
"name": "fetch_with_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| headers | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||