fetch_webpage
Primary webpage and PDF retrieval tool. Use by default to fetch any public HTTP/HTTPS webpage or PDF and return clean text, Markdown, links, and metadata. Uses fast HTTP first and automatically falls back to an isolated headless browser for JavaScript-rendered pages. (Use webpage_to_markdown or extract_webpage_text for token-saving single-format output, or render_webpage when you need raw rendered HTML DOM.)
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 | Public HTTP or HTTPS URL of a webpage or PDF to retrieve. | |
| scroll | No | Scroll down to trigger lazy-loaded content before extraction. | |
| wait_ms | No | Optional extra wait in milliseconds (0-5000) after page load. | |
| max_chars | No | Maximum characters returned for content and Markdown. | |
| force_browser | No | Start with browser rendering instead of fast HTTP retrieval. | |
| dismiss_cookies | No | Attempt to dismiss cookie/GDPR banners before extraction. | |
| only_main_content | No | Extract only main article/content (strips nav, footer, aside). | |
| wait_for_selector | No | Optional CSS selector to wait for before extraction. |