From 6759b6fd0ab435aa1e9fdb4591bd828b7a861a33 Mon Sep 17 00:00:00 2001 From: amankumarsingh77 Date: Sat, 2 May 2026 15:29:23 +0530 Subject: feat: v0.2.1 — feature parity with browser-use/browser-harness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the missing tools called out in docs/browser-harness-comparison.md: upload_file, dispatch_key, download (configure dir), viewport_resize, drag_and_drop, print_to_pdf, get_network_log, plus the iframe-target helper. Updates promptGuidelines and the system prompt's tools table. Tracked in todo.md. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/prompt.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/prompt.ts') diff --git a/src/prompt.ts b/src/prompt.ts index 8e3b727..a585124 100644 --- a/src/prompt.ts +++ b/src/prompt.ts @@ -102,5 +102,17 @@ browser_execute_js("document.querySelector('.main').innerText") → extract cont \`\`\` write("/tmp/extract.js", "...script with daemon access...") → browser_run_script("/tmp/extract.js") \`\`\` + +### Additional Tools + +| Tool | Purpose | +|------|---------| +| browser_upload_file | Upload a file to a file input (bypasses file picker) | +| browser_dispatch_key | Dispatch a DOM KeyboardEvent on a specific element (for React/Vue inputs) | +| browser_download | Configure download directory and disable save-as prompts | +| browser_viewport_resize | Resize the viewport for responsive testing | +| browser_drag_and_drop | Perform drag-and-drop from one coordinate to another | +| browser_print_to_pdf | Print the current page to a PDF file | +| browser_get_network_log | Get buffered network request/response events | `; } -- cgit v1.2.3