Problem. browser_snapshot hard-caps at 250 nodes (src/pageSnapshot.ts:28, const MAX = 250). Dense UIs (data tables, long forms) get silently truncated; an agent that doesn't check the truncated: true flag works from an incomplete view of the page.
Proposed. Add an optional limit parameter to the browser_snapshot tool (in src/toolSpecs.ts), threaded into SNAPSHOT_JS to replace the hardcoded MAX (keep 250 as the default). Optionally also honor a DEVLOOP_SNAPSHOT_MAX env default. Keep emitting truncated when the cap is hit.
Affected: src/pageSnapshot.ts, src/toolSpecs.ts (tool param), both substrate injectors.
Filed from the weekly repo audit.
Problem.
browser_snapshothard-caps at 250 nodes (src/pageSnapshot.ts:28,const MAX = 250). Dense UIs (data tables, long forms) get silently truncated; an agent that doesn't check thetruncated: trueflag works from an incomplete view of the page.Proposed. Add an optional
limitparameter to thebrowser_snapshottool (insrc/toolSpecs.ts), threaded intoSNAPSHOT_JSto replace the hardcodedMAX(keep 250 as the default). Optionally also honor aDEVLOOP_SNAPSHOT_MAXenv default. Keep emittingtruncatedwhen the cap is hit.Affected:
src/pageSnapshot.ts,src/toolSpecs.ts(tool param), both substrate injectors.Filed from the weekly repo audit.