Add /markdown endpoint that converts the current page DOM to GitHub Flavored Markdown.
Implementation: inject JS via Runtime.evaluate that extracts page content and converts to markdown.
Params: tab_id (required), url (optional - navigate first)
Returns: {"markdown": "..."}
Ref: Lightpanda's markdown MCP tool uses DOM-to-markdown conversion.
Add
/markdownendpoint that converts the current page DOM to GitHub Flavored Markdown.Implementation: inject JS via
Runtime.evaluatethat extracts page content and converts to markdown.Params:
tab_id(required),url(optional - navigate first)Returns:
{"markdown": "..."}Ref: Lightpanda's
markdownMCP tool uses DOM-to-markdown conversion.