Read a URL
fetchReads a URL in a hidden browser page using its cookies and network, returning rendered HTML as Markdown or other content as text; also performs origin-based API calls and reports bot challenges or blocks.
Instructions
Reads a URL through the browser, with its cookies, fingerprint and network, in a hidden page that never becomes a tab: HTML is rendered and returned as Markdown, anything else as text. A method, headers or a body make it an API call from a page of the URL's origin. Says when a bot challenge or a block got in the way. Needs an open browser (headless is fine).
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 |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| mode | No | raw: the response as it is, even HTML. | |
| links | No | Also list every link on the page. | |
| method | No | ||
| headers | No | ||
| save_to | No | A new file to save the body in (a download, such as a Google Docs export: /export?format=docx); without it a binary body goes to a file under the profile. A text body is saved as the response's text; an HTML page as the Markdown it is rendered to, unless mode is raw. A file that already exists, or a folder that cannot be made, is refused before the request goes out. A failure to write afterwards is said in the answer, which still carries the response. | |
| max_chars | No | How much of the text to return (default 40,000); the rest is saved to a file. |