aboutsummaryrefslogtreecommitdiff
path: root/src/prompt.ts
diff options
context:
space:
mode:
authoramankumarsingh77 <amankumarsingh7702@gmal.com>2026-05-02 15:29:23 +0530
committeramankumarsingh77 <amankumarsingh7702@gmal.com>2026-05-02 15:29:23 +0530
commit6759b6fd0ab435aa1e9fdb4591bd828b7a861a33 (patch)
treeca6122e48b3e488ac2e0dc8d66fe631aacb071de /src/prompt.ts
parent5b76aa3412ec0ad043c1e8ae23b00085a4100178 (diff)
feat: v0.2.1 — feature parity with browser-use/browser-harness
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) <noreply@anthropic.com>
Diffstat (limited to 'src/prompt.ts')
-rw-r--r--src/prompt.ts12
1 files changed, 12 insertions, 0 deletions
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 |
`;
}