Conversation
f0c805c to
76720a6
Compare
3de956d to
6093388
Compare
c0fde7a to
b0349f2
Compare
Collaborator
Author
b0349f2 to
5167cd3
Compare
5167cd3 to
d227bc0
Compare
Lightning00Blade
approved these changes
Jan 12, 2026
theomart
pushed a commit
to theomart/chrome-devtools-mcp
that referenced
this pull request
Jan 15, 2026
Analyze GitHub issues (sorted by comments), PRs, and source code to document key technical challenges for building browser automation MCPs with AI agents. Key findings grounded in actual code: - Token explosion from automatic snapshots in input tools (src/tools/input.ts) - Error handling patterns learned from crashes (src/main.ts, src/PageCollector.ts) - WSL2 Chrome discovery issues (src/browser.ts) - Dual-format output implementation (src/formatters/SnapshotFormatter.ts) - Accessibility tree limitations from Puppeteer dependency Sources: Issues ChromeDevTools#131, ChromeDevTools#363, ChromeDevTools#617, ChromeDevTools#635, ChromeDevTools#689, ChromeDevTools#690, ChromeDevTools#709, ChromeDevTools#713, ChromeDevTools#716, ChromeDevTools#726, ChromeDevTools#752 PRs: ChromeDevTools#618, ChromeDevTools#710, ChromeDevTools#744 Commits: f59b4a2, ca0f560, 3fcca02
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.

The idea is to turn formatters into instances and support both text and JSON formatting. The structured content is output if the experimental structured content flag is passed. For now, only the snapshots are returned in a structured way.
Refs #689