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/content/docs/browser-rendering/platform/stagehand.mdx
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,18 +15,16 @@ import {
15
15
PackageManagers,
16
16
} from"~/components";
17
17
18
-
[Stagehand](https://www.stagehand.dev/) is ___
19
-
20
-
You can use Stagehand to ___
21
-
18
+
[Stagehand](https://www.stagehand.dev/) is an open-source, AI-powered browser automation library. Rather than dictating exact steps or specifying selectors, Stagehand enables developers to build more reliably and flexibly by combining code with natural-language instructions powered by AI. This makes your agents more resilient to website changes and easier to maintain.
22
19
23
20
## Use Stagehand in a Worker
24
21
22
+
In this example, you will search for a movie on https://www.themoviedb.org/ and return the movie's title, year, and director, as well as a screenshot of the webpage.
23
+
25
24
After you deploy, you can interact with the Worker using this URL pattern:
26
25
```
27
26
https://<your-worker>.workers.dev
28
27
```
29
-
In this example, you will search for a movie on https://www.themoviedb.org/ and return the movie's title, year, and director, as well as a screenshot of the webpage.
30
28
31
29
If you want to skip the steps and get started quickly, select **Deploy to Cloudflare** below.
32
30
@@ -36,7 +34,8 @@ If you want to skip the steps and get started quickly, select **Deploy to Cloudf
36
34
```bash
37
35
npm ci
38
36
```
39
-
2. Make sure you have the [browser rendering](/browser-rendering/) in your wrangler configuration file:
37
+
38
+
2. Include the [browser rendering](/browser-rendering/) binding in your wrangler configuration file:
40
39
<WranglerConfig>
41
40
```jsonc
42
41
{
@@ -180,4 +179,7 @@ const stagehand = new Stagehand({
For the full list of Stagehand methods and capabilities, refer to the official [Stagehand API documentation](https://docs.stagehand.dev/first-steps/introduction).
0 commit comments