Skip to content

chore: support structured content#744

Merged
OrKoN merged 2 commits intomainfrom
orkon/structured-output
Jan 12, 2026
Merged

chore: support structured content#744
OrKoN merged 2 commits intomainfrom
orkon/structured-output

Conversation

@OrKoN
Copy link
Copy Markdown
Collaborator

@OrKoN OrKoN commented Jan 8, 2026

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

@OrKoN OrKoN force-pushed the orkon/structured-output branch 6 times, most recently from f0c805c to 76720a6 Compare January 12, 2026 12:28
@OrKoN OrKoN force-pushed the orkon/structured-output branch 2 times, most recently from 3de956d to 6093388 Compare January 12, 2026 13:18
@OrKoN OrKoN changed the title chore: structured snapshot chore: support structured content Jan 12, 2026
@OrKoN OrKoN force-pushed the orkon/structured-output branch 2 times, most recently from c0fde7a to b0349f2 Compare January 12, 2026 13:29
@OrKoN
Copy link
Copy Markdown
Collaborator Author

OrKoN commented Jan 12, 2026

Screenshot 2026-01-12 at 14 31 44

@OrKoN OrKoN marked this pull request as ready for review January 12, 2026 13:32
Comment thread src/formatters/SnapshotFormatter.ts Outdated
Comment thread src/formatters/SnapshotFormatter.ts Outdated
Comment thread src/formatters/SnapshotFormatter.ts Outdated
@OrKoN OrKoN force-pushed the orkon/structured-output branch from b0349f2 to 5167cd3 Compare January 12, 2026 13:40
@OrKoN OrKoN force-pushed the orkon/structured-output branch from 5167cd3 to d227bc0 Compare January 12, 2026 13:42
@OrKoN OrKoN added this pull request to the merge queue Jan 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 12, 2026
@OrKoN OrKoN added this pull request to the merge queue Jan 12, 2026
Merged via the queue into main with commit 3fcca02 Jan 12, 2026
20 checks passed
@OrKoN OrKoN deleted the orkon/structured-output branch January 12, 2026 13:57
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants