fix: apply snapshot configuration to remaining interactive tools
Fixes massive token overflow in browser_wait_for (284K tokens) and other interactive tools by applying existing snapshot configuration system. Updated tools with session-configurable snapshots: - browser_wait_for (was generating 284,335 tokens\!) - browser_handle_dialog - browser_evaluate - browser_file_upload - browser_tab_select, browser_tab_new, browser_tab_close All tools now: ✅ Respect browser_configure_snapshots settings ✅ Include updated descriptions mentioning session configurability ✅ Apply size limits, truncation, and differential modes automatically ✅ Can be controlled dynamically during sessions This completes the comprehensive snapshot overflow solution covering all interactive tools that generate accessibility snapshots. Added SNAPSHOT_OVERFLOW_SOLUTION.md with complete usage guide and quick fixes for token-constrained workflows. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2fe8b9355c
commit
88cf3f8f81
6 changed files with 139 additions and 7 deletions
|
|
@ -23,7 +23,7 @@ const wait = defineTool({
|
|||
schema: {
|
||||
name: 'browser_wait_for',
|
||||
title: 'Wait for',
|
||||
description: 'Wait for text to appear or disappear or a specified time to pass',
|
||||
description: 'Wait for text to appear or disappear or a specified time to pass. Returns page snapshot after waiting (configurable via browser_configure_snapshots).',
|
||||
inputSchema: z.object({
|
||||
time: z.number().optional().describe('The time to wait in seconds'),
|
||||
text: z.string().optional().describe('The text to wait for'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue