feat(core): Use interactive-only snapshots by default to improve token efficiency#28334
Draft
feat(core): Use interactive-only snapshots by default to improve token efficiency#28334
Conversation
…y-default-to-improve-token
…worker suspension
…argetIds" This reverts commit ff9d69c.
…y-default-to-improve-token
Contributor
|
Bundle ReportChanges will increase total bundle size by 79.04kB (0.17%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: editor-ui-esmAssets Changed:
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Contributor
Performance ComparisonComparing current → latest master → 14-day baseline docker-stats
Memory consumption baseline with starter plan resources
Idle baseline with Instance AI module loaded
How to read this table
|
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.
Summary
Switches the MCP browser tooling to use interactive-only ARIA snapshots by default, significantly reducing token usage when inspecting pages. Key changes:
ariaSnapshotmodule inmcp-browser-extensionthat produces focused snapshots containing only interactive elements (buttons, links, inputs, etc.) with configurable depth and scoped context refsinspect_pageand related tools now acceptsnapshotType(interactive|full) andmaxDepthparameters, defaulting to interactive-onlyHow to test
inspect_page— verify it returns a compact interactive-only snapshot by defaultinspect_pagewithsnapshotType: "full"— verify it returns the full ARIA treemaxDepthparameter to control snapshot depthRelated Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/NODE-4778
Review / Merge checklist
Backport to Beta,Backport to Stable, orBackport to v1(if the PR is an urgent fix that needs to be backported)🤖 PR Summary generated by AI