Tools
Stagehand
Web automation and data extraction
Usage Instructions
Integrate Stagehand into the workflow. Can extract structured data from webpages or run an autonomous agent to perform tasks.
Tools
stagehand_extract
Extract structured data from a webpage using Stagehand
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL of the webpage to extract data from |
instruction | string | Yes | Instructions for extraction |
provider | string | No | AI provider to use: openai or anthropic |
apiKey | string | Yes | API key for the selected provider |
schema | json | Yes | JSON schema defining the structure of the data to extract |
Output
| Parameter | Type | Description |
|---|---|---|
data | object | Extracted structured data matching the provided schema |
stagehand_agent
Run an autonomous web agent to complete tasks and extract structured data
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
startUrl | string | Yes | URL of the webpage to start the agent on |
task | string | Yes | The task to complete or goal to achieve on the website |
variables | json | No | Optional variables to substitute in the task (format: {key: value}). Reference in task using %key% |
provider | string | No | AI provider to use: openai or anthropic |
apiKey | string | Yes | API key for the selected provider |
outputSchema | json | No | Optional JSON schema defining the structure of data the agent should return |
Output
| Parameter | Type | Description |
|---|---|---|
agentResult | object | Result from the Stagehand agent execution |
structuredOutput | object | Extracted data matching the provided output schema |
Notes
- Category:
tools - Type:
stagehand