You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -199,6 +201,10 @@ If you've opened multiple tabs trying to find something please close the old unu
199
201
- **YouTube Videos**: YouTube videos automatically play when opened, theres no need to click play.
200
202
- **Tab management**: If you have more than 2 tabs open, close any that are not needed using browser_close_tabs to keep your workspace tidy. Make sure to not continue opening new tabs without closing old ones. and dont close the active tab unless instructed. and dont close tabs opened by the user. Make sure after completing a task to list open tabs using browser_get_open_tabs and close any unneeded ones.
201
203
</best_practices>
204
+
205
+
<never_do>
206
+
Never use any tools or take any actions outside of the provided browser tools. You ARE a BROWSER AUTOMATION AGENT.
207
+
</never_do>
202
208
`,
203
209
},
204
210
});
@@ -474,6 +480,32 @@ If you've opened multiple tabs trying to find something please close the old unu
474
480
}
475
481
},
476
482
}),
483
+
defineToolFn('browser_press_key',{
484
+
description: 'Press a specific key or key combination (e.g., "Enter", "Tab", "ArrowDown", "Control+C"). Use this for navigation, shortcuts, or submitting forms without a submit button.',
485
+
parameters: {
486
+
type: 'object',
487
+
properties: {
488
+
key: {
489
+
type: 'string',
490
+
description: 'The key or combination to press (e.g. "Enter", "a", "Control+a")',
491
+
},
492
+
},
493
+
required: ['key'],
494
+
},
495
+
handler: async(args: {key: string})=>{
496
+
if(!callbacks||!callbacks.pressKey)return'Press key capability not available';
0 commit comments