Page2AI — Web to Markdown

v0.10.1
io.github.igorsaevets/page2ai-mcp Checked 4 hours ago Published 28 days ago

Convert 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…

ParameterTypeDescription
htmlstringRaw 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_frontmatterbooleanPrepend a YAML frontmatter block with title, source URL, capture timestamp, language, description, and canonical URL. Applies on every path, including through Agent Bridge.
include_imagesbooleanInclude image references (![alt](src)) in the output. Applies on every path, including through Agent Bridge.
max_lengthintegerReturn 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…
querystringA 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_indexintegerCharacter 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_msintegerAbort the fetch after N milliseconds. Range: 1000-60000.
urlstringAbsolute 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…