feat(core): update browser agent prompt to check open pages first when bringing up (#24431)

This commit is contained in:
cynthialong0-0
2026-04-01 10:52:18 -07:00
committed by GitHub
parent 377e834e03
commit 16468a855d

View File

@@ -190,7 +190,7 @@ export const BrowserAgentDefinition = (
\${task}
</task>
First, use new_page to open the relevant URL. Then call take_snapshot to see the page and proceed with your task.`,
First, use <list_pages/> to check if there are any existing pages that can fulfill the user's request. If not, you MUST use <new_page/> to open the relevant URL unless the user explicitly provides different instructions.`,
systemPrompt: buildBrowserSystemPrompt(
visionEnabled,
config.getBrowserAgentConfig().customConfig.allowedDomains,