We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd7412 commit ce07cfaCopy full SHA for ce07cfa
.changeset/upset-ghosts-shout.md
@@ -0,0 +1,5 @@
1
+---
2
+"@browserbasehq/stagehand": patch
3
4
+
5
+Add current page and date context to agent
lib/handlers/stagehandAgentHandler.ts
@@ -237,7 +237,8 @@ STRATEGY:
237
- Prefer ariaTree to understand the page before acting; use screenshot for quick confirmation.
238
- Keep actions atomic and verify outcomes before proceeding.
239
240
-For each action, provide clear reasoning about why you're taking that step.`;
+For each action, provide clear reasoning about why you're taking that step.
241
+Today's date is ${new Date().toLocaleDateString()}. You're currently on the website: ${this.stagehand.page.url}.`;
242
}
243
244
private createTools() {
0 commit comments