diff options
| author | amankumarsingh77 <amankumarsingh7702@gmal.com> | 2026-05-02 21:59:30 +0530 |
|---|---|---|
| committer | amankumarsingh77 <amankumarsingh7702@gmal.com> | 2026-05-02 21:59:30 +0530 |
| commit | a1df2d3e0998e99176a4bfe3cffb83b9e6a2377e (patch) | |
| tree | f84522e4f08fd6adeaf4954e09fc6e43a59d02f7 /src/domains/keyboard.ts | |
| parent | c9d1605b1e3b8dbe88cd3674a9256aa0465f3e6d (diff) | |
release: v0.3.1 — audit fixes for list_tabs IDs, switch_tab prefix matching, download auto-mkdir, session recovery, docs updates
Bug fixes:
- list_tabs: show full 32-char targetIds (was truncated to 8 chars)
- switch_tab: prefix matching fallback for hex prefixes >= 8 chars
- download: auto-create directory with mkdir -p
- ensureAlive: Runtime.evaluate probe to recover from crashed page targets
Docs:
- dispatch_key: clarify DOM-only event behavior
- navigate: warn about Google anti-bot limitation
- network_log: update deprecated promptSnippet
- SKILL.md: document actual daemon API (evaluateJs, pageInfo, session.call)
- SKILL.md: add troubleshooting for sharp/maxDim and Google navigation
- sharp: add to optionalDependencies for screenshot maxDim auto-resize
Diffstat (limited to 'src/domains/keyboard.ts')
| -rw-r--r-- | src/domains/keyboard.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/domains/keyboard.ts b/src/domains/keyboard.ts index d953b76..c39814e 100644 --- a/src/domains/keyboard.ts +++ b/src/domains/keyboard.ts @@ -91,6 +91,7 @@ export const dispatchKeyTool = defineBrowserTool({ "Dispatch a DOM KeyboardEvent on a specific element via JS injection. Use for React/Vue components that listen to synthetic events more reliably than CDP input.", promptSnippet: "Dispatch a DOM KeyboardEvent on a specific element", promptGuidelines: [ + "Dispatches a synthetic DOM KeyboardEvent — for React/Vue synthetic event listeners. Does NOT insert text into inputs (use browser_type or browser_press_key for actual typing).", "Try browser_press_key first; only use browser_dispatch_key when the page ignores raw CDP key events.", "The selector must match exactly one or more elements; zero matches is reported as an error.", "eventType defaults to 'keydown'.", |
