feat: Lightpanda browser feature parity — 9 new endpoints, 11 CDP methods, 30+ tests#70
Merged
justrach merged 1 commit intoMar 14, 2026
Conversation
New endpoints: - /markdown - convert page DOM to GitHub Flavored Markdown - /links - extract all hyperlinks from page - /pdf - generate PDF via Page.printToPDF - /dom/query - querySelector/querySelectorAll via CDP DOM - /dom/html - getOuterHTML via CDP DOM - /cookies/delete - delete specific cookies via Network.deleteCookies - /headers - set extra HTTP headers via Network.setExtraHTTPHeaders - /script/inject - inject script on new documents - /stop - stop page loading via Page.stopLoading CDP protocol constants added for 11 new methods across Network, Page, and DOM domains. 30+ new tests covering route matching, parameter parsing, and protocol method validation. Closes #61, #62, #63, #64, #65, #66, #67, #68, #69 Refs #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds feature parity with lightpanda-io/browser — all 4 MCP tools have HTTP endpoint equivalents, plus additional CDP domain coverage.
New Endpoints (9)
/markdownRuntime.evaluate(JS injection)/links<a href>links from pageRuntime.evaluate/pdfPage.printToPDF/dom/queryDOM.querySelector/DOM.querySelectorAll/dom/htmlDOM.getOuterHTML/cookies/deleteNetwork.deleteCookies/headersNetwork.setExtraHTTPHeaders/script/injectPage.addScriptToEvaluateOnNewDocument/stopPage.stopLoadingNew CDP Protocol Constants (11)
Network.getCookies,Network.setCookies,Network.deleteCookies,Network.setExtraHTTPHeaders,Network.enable,Network.disable,Page.printToPDF,Page.stopLoading,DOM.querySelector,DOM.querySelectorAll,DOM.getOuterHTMLTests
30+ new tests covering route matching, parameter parsing, protocol method validation, and uniqueness checks.
Parity Summary
goto,markdown,links,evaluateCloses #61, #62, #63, #64, #65, #66, #67, #68, #69