Fetch page as Markdown
fetch_page_markdownFetches a web page and converts it to clean Markdown for reading or analysis, removing scripts, styles, and ads while preserving tables, code blocks, and lists.
Instructions
Fetch a web page and convert it to clean Markdown for reading or analysis. Removes scripts, styles, ads and (by default) navigation chrome, resolves relative links to absolute URLs, and keeps tables, code blocks and lists intact. Long pages are paginated: when truncated is true, call again with startIndex: nextStartIndex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page to fetch. | |
| maxLength | No | Maximum number of Markdown characters to return in one call. | |
| timeoutMs | No | Request timeout in milliseconds (1000-120000). | |
| startIndex | No | Character offset to start from. Use `nextStartIndex` to page through long pages. | |
| includeLinks | No | Keep Markdown links. When false, link text is inlined as plain text. | |
| includeImages | No | Keep images as Markdown image syntax. | |
| includeMetadata | No | Include a short metadata summary (title, description, canonical, language). | |
| mainContentOnly | No | Strip navigation, headers, footers and sidebars, keeping the densest content block. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Final URL after redirects. | |
| title | Yes | ||
| status | Yes | ||
| endIndex | Yes | ||
| markdown | Yes | ||
| metadata | Yes | ||
| elapsedMs | Yes | ||
| fromCache | Yes | ||
| redirects | Yes | ||
| truncated | Yes | ||
| wordCount | Yes | ||
| startIndex | Yes | ||
| contentType | Yes | ||
| totalLength | Yes | Length of the full Markdown document. | |
| requestedUrl | Yes | ||
| markdownLength | Yes | ||
| nextStartIndex | Yes | Pass as `startIndex` to fetch the next chunk, or null when complete. | |
| bytesDownloaded | Yes |