AACFlow

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

Input

ParameterTypeRequiredDescription
urlstringYesNo description
instructionstringYesNo description
providerstringNoNo description
apiKeystringYesNo description
schemajsonYesNo description

Output

ParameterTypeDescription
dataobjectExtracted structured data matching the provided schema

stagehand_agent

Input

ParameterTypeRequiredDescription
startUrlstringYesNo description
taskstringYesNo description
variablesjsonNoOptional variables to substitute in the task (format: {key: value}). Reference in task using %key%
providerstringNoNo description
apiKeystringYesNo description
outputSchemajsonNoNo description

Output

ParameterTypeDescription
agentResultobjectResult from the Stagehand agent execution
successbooleanWhether the agent task completed successfully without errors
completedbooleanWhether the agent finished executing (may be false if max steps reached)
messagestringFinal status message or result summary from the agent
actionsarrayList of all actions performed by the agent during task execution
typestringType of action performed (e.g., "act", "observe", "ariaTree", "close", "wait", "navigate")
reasoningstringAI reasoning for why this action was taken
taskCompletedbooleanWhether the task was completed after this action
actionstringDescription of the action taken (e.g., "click the submit button")
instructionstringInstruction that triggered this action
pageUrlstringURL of the page when this action was performed
pageTextstringPage text content (for ariaTree actions)
timestampnumberUnix timestamp when the action was performed
timeMsnumberTime in milliseconds (for wait actions)
structuredOutputobjectExtracted data matching the provided output schema

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started