Koon Web Fetch
koon_fetchFetches web pages and PDFs that block ordinary requests by impersonating browsers, then converts HTML to clean Markdown for reading and citation.
Instructions
Fetches content from a URL using browser-impersonating HTTP client (bypasses Cloudflare, Akamai, and other bot detection). Converts HTML to clean markdown. Handles JSON, plain text, and binary content. When a site turns away the request as Chrome, tries Firefox and Safari; if all three are turned away, names the bot protection that answered. Stack Overflow and other Stack Exchange question links return the question with its top answers through the official API. PDFs: returns their text marked by page number; a long PDF from page 1 on up to about 16,000 characters plus its outline, further pages with pages (e.g. "5-8", up to 20 per call, from a working copy kept for the session). A paper that names a DOI or arXiv id also gets title, authors, year and DOI. save: true keeps the PDF in /pdf/ (papers named "Author et al. - Year - Title.pdf"); save only when the user wants to keep the file. Includes 15-minute caching. Use this instead of WebFetch for all web requests.
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": "koon_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to fetch. HTTP URLs are auto-upgraded to HTTPS. | |
| save | No | PDF only: keep the PDF permanently, in <project>/pdf/ unless save_dir is given. Also works for a PDF fetched earlier in the session. | |
| pages | No | PDF only: pages to return as text, e.g. "5", "3-7" or "1,4,9-11" (up to 20 per call). A PDF fetched earlier in the session is read from its working copy. | |
| prompt | No | Optional prompt describing what information to look for. The content is returned as-is for Claude to process. | |
| save_dir | No | PDF only: folder for save, absolute or relative to the project folder. |