Skip to content

Commit e1ecee5

Browse files
authored
Update stagehand.mdx
update wording
1 parent 6b00289 commit e1ecee5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@ import {
1515
PackageManagers,
1616
} from "~/components";
1717

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.
2219

2320
## Use Stagehand in a Worker
2421

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+
2524
After you deploy, you can interact with the Worker using this URL pattern:
2625
```
2726
https://<your-worker>.workers.dev
2827
```
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.
3028

3129
If you want to skip the steps and get started quickly, select **Deploy to Cloudflare** below.
3230

@@ -36,7 +34,8 @@ If you want to skip the steps and get started quickly, select **Deploy to Cloudf
3634
```bash
3735
npm ci
3836
```
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:
4039
<WranglerConfig>
4140
```jsonc
4241
{
@@ -180,4 +179,7 @@ const stagehand = new Stagehand({
180179
baseURL: `https://gateway.ai.cloudflare.com/v1/${env.CLOUDFLARE_ACCOUNT_ID}/${env.AI_GATEWAY_ID}/openai`,
181180
},
182181
});
183-
```
182+
```
183+
184+
## Stagehand API
185+
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

Comments
 (0)