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 uploadFile = defineTabTool({
|
|||
schema: {
|
||||
name: 'browser_file_upload',
|
||||
title: 'Upload files',
|
||||
description: 'Upload one or multiple files',
|
||||
description: 'Upload one or multiple files. Returns page snapshot after upload (configurable via browser_configure_snapshots).',
|
||||
inputSchema: z.object({
|
||||
paths: z.array(z.string()).describe('The absolute paths to the files to upload. Can be a single file or multiple files.'),
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue