fetch
Read any URL as clean markdown, including HTML, JSON, XML, CSV, and PDF, with no domain restrictions. Send POST requests to APIs that require request bodies.
Instructions
Fetch any URL and return the page content as clean markdown. Handles HTML, JSON, XML, CSV, and PDF files. Use this tool for reading/fetching web pages - it has no domain restrictions. For discovering URLs via search, use the search tool. For reading URL content, use this tool.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return raw HTML instead of markdown (default: false) | |
| url | Yes | The URL to fetch | |
| body | No | Request body (POST only). Content-Type defaults to application/json when the body is valid JSON. | |
| method | No | HTTP method (default: GET). Use POST for search/listing APIs that only answer to POST (Getro, Algolia, GraphQL). POST requests skip site-specific handling and the response cache. | |
| headers | No | Extra request headers, e.g. {"Accept": "application/json"}. Connection and body-framing headers cannot be set. | |
| timeout | No | Request timeout in seconds (default: 10) | |
| maxTokens | No | Maximum tokens to return (default: 25000) | |
| redditSort | No | Reddit threads only, optional (default: best, Reddit's own ranking). Comment order: best, top (highest score), new, old, controversial, or qa (comments the poster answered first, for AMAs). Same as ?sort= on the thread URL, and wins over it; load-more links keep it. | |
| redditComments | No | Reddit threads only (default: fast). Reddit returns at most 200 comments per read; "fast" makes one read and links the rest. "more" follows those links automatically (top-level comments first, up to 5 extra reads, ~6s each) until maxTokens is full, so raise maxTokens and timeout (e.g. 60) with it. |