Skip to content

Commit e9ec6a9

Browse files
kathaylToriLindsay
andauthored
docs(browser-rendering): note Stagehand v2.5.x requirement (#27339)
* docs(browser-rendering): note Stagehand v2.5.x requirement * Update src/content/docs/browser-rendering/stagehand.mdx Co-authored-by: ToriLindsay <tgalatro@cloudflare.com> --------- Co-authored-by: ToriLindsay <tgalatro@cloudflare.com>
1 parent 9b68315 commit e9ec6a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/content/docs/browser-rendering/stagehand.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ import {
2121

2222
This guide shows you how to deploy a [Worker](/workers/) that uses Stagehand, Browser Rendering, and [Workers AI](/workers-ai/) to automate a web task.
2323

24+
:::note
25+
Browser Rendering currently supports `@browserbasehq/stagehand` `v2.5.x` only.
26+
Stagehand `v3` and later are not supported because they are not Playwright-based.
27+
:::
28+
2429
## Use Stagehand in a Worker with Workers AI
2530

2631
In this example, you will use Stagehand to search for a movie on this [example movie directory](https://demo.playwright.dev/movies), extract its details (title, year, rating, duration, and genre), and return the information along with a screenshot of the webpage.
@@ -158,7 +163,7 @@ Ensure your `package.json` has the following dependencies:
158163
{
159164
// ...
160165
"dependencies": {
161-
"@browserbasehq/stagehand": "^2.5.0",
166+
"@browserbasehq/stagehand": "2.5.x",
162167
"@cloudflare/playwright": "^1.0.0",
163168
"zod": "^3.25.76",
164169
"zod-to-json-schema": "^3.24.6"

0 commit comments

Comments
 (0)