Fetch Webpage
fetch_webpageRetrieve and extract clean text from web pages and PDFs, including JavaScript-rendered content, with automatic fallback to alternative extraction methods.
Instructions
Fetch and extract content from a webpage or PDF.
Uses Jina Reader to fetch and convert web pages and PDFs to clean text. Handles JavaScript-rendered pages and extracts content from PDFs. Falls back to Trafilatura extraction if Jina fails.
Args: url: The URL to fetch (web page or PDF)
Returns: Extracted content in markdown format
Examples: - Fetch a webpage: fetch_webpage("https://example.com/article") - Fetch a PDF: fetch_webpage("https://example.com/document.pdf")
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_webpage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to fetch content from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |