Page2AI — Web to Markdown
v0.10.1Convert a web page URL to clean Markdown for LLM context.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
page_to_markdown Convert Page to Markdown
Fetch a web page URL and convert it to clean Markdown optimized for LLM context. Preserves headings, code blocks (with language hints), links, and tables; keeps the main content and drops navigation, headers, footers, and sidebars. It fetches without cookies and runs no page scripts, so a page behind a sign-in or one rendered only by JavaScript comes back as its login page or with no content. For those, pass the page HTML you already have from a browser tool as `html` (with its `url`, relative links resolve and nothing is fetched), or ask the user to turn on Agent Bridge in the Page2AI browser…
| Parameter | Type | Description |
|---|---|---|
html | string | Raw HTML of the page to convert instead of fetching it, e.g. from a browser tool. Pass the page's `url` with it so relative links resolve. Either `url` or `html` is required. |
include_frontmatter | boolean | Prepend a YAML frontmatter block with title, source URL, capture timestamp, language, description, and canonical URL. Applies on every path, including through Agent Bridge. |
include_images | boolean | Include image references () in the output. Applies on every path, including through Agent Bridge. |
max_length | integer | Return at most this many characters of the page's Markdown. A longer page comes back in parts: each part names the start_index of the next one, and the first part lists the page's sections with their… |
query | string | A free-text query to filter the page by relevance. When given, only the sections whose text matches the query are returned, ranked by BM25 and fitted into max_length. Ignores start_index. For the full… |
start_index | integer | Character offset to read from: the start_index a part named for the next one, or a section's from the list on the first part. Later parts come from the text the first part was cut from, kept for 10 mi… |
timeout_ms | integer | Abort the fetch after N milliseconds. Range: 1000-60000. |
url | string | Absolute HTTP or HTTPS URL of the web page to convert. Blocks private ranges, loopback, and cloud metadata endpoints. Given with `html`, it is not fetched: it names the page the HTML came from, and re… |