fetch
Retrieve public web pages or text-based PDFs as readable, token-efficient text with links and tables preserved, using local caching and no API keys.
Instructions
Free LOCAL URL fetch, no provider quota: GET the page and return readable text. HTML pages -> extracted main content with links and tables kept (much fewer tokens than raw dump); PDF -> extracted text (text-based PDFs only, scanned need OCR). Only public http/https URLs; redirects are vetted hop by hop; response capped at 20 MB, maxlen capped at 30000. Cached locally for 7 days. If a page yields almost no text (JS-rendered or blocked), returns a note to use browser automation for that URL.
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 | ||
| maxlen | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |