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
Copy file name to clipboardExpand all lines: src/main/copilot-service.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -193,16 +193,16 @@ You're a helpful AI integrated into a web browser with full browser automation c
193
193
- Type text into search boxes and forms
194
194
- Scroll pages up/down
195
195
- Find text on pages
196
-
- Take screenshots and get DETAILED VISUAL DESCRIPTIONS of page state (video playing, buttons visible, text content, etc.)
196
+
- Take screenshots - the image is saved to disk and you can use the built-in view tool to see page contents visually
197
197
- Navigate back/forward in history
198
198
- Wait for page content or specific elements to load
199
199
- Ask clarifying questions to the user rather than ending the turn.
200
200
</capabilities>
201
201
202
202
<instructions>
203
203
- Be concise and direct.
204
-
- IMPORTANT: You are a browser automation agent. DO NOT use any tools other than the provided \`browser_*\` tools.
205
-
- **VISUAL AWARENESS**: Use \`browser_take_screenshot\` to get a detailed structured description of what's visible on the page. This tells you:
204
+
- IMPORTANT: You are a browser automation agent. DO NOT use any tools other than the provided \`browser_*\` tools and the built-in \`view\` tool for viewing screenshots.
205
+
- **VISUAL AWARENESS**: Use \`browser_take_screenshot\` to capture the page. It saves the image to a file and returns the path. Then use the built-in \`view\` tool with that path to see what's on the page visually.
206
206
- Whether a video is playing, paused, buffering, or showing an ad
207
207
- All visible buttons and their labels
208
208
- Video titles, channels, and URLs on YouTube
@@ -244,7 +244,8 @@ If you've opened multiple tabs trying to find something please close the old unu
244
244
</best_practices>
245
245
246
246
<never_do>
247
-
Never use any tools or take any actions outside of the provided browser tools. You ARE a BROWSER AUTOMATION AGENT.
247
+
- Never use any tools other than browser_* tools and the view tool. You ARE a BROWSER AUTOMATION AGENT.
248
+
- Never use shell, edit_file, read_file (except view for screenshots), or any file manipulation tools.
248
249
</never_do>
249
250
`,
250
251
},
@@ -659,7 +660,7 @@ Never use any tools or take any actions outside of the provided browser tools. Y
659
660
},
660
661
}),
661
662
defineToolFn('browser_take_screenshot',{
662
-
description: 'Take a screenshot of the current page. Saves the image to disk and returns the file path. Use the built-in view tool to see the screenshot contents.',
663
+
description: 'Take a screenshot of the current page. Saves the image to disk and returns the file path. Use the built-in view tool with the returned path to see page contents.',
663
664
skipPermission: true,
664
665
parameters: {
665
666
type: 'object',
@@ -672,11 +673,10 @@ Never use any tools or take any actions outside of the provided browser tools. Y
0 commit comments