Write effective prompts for reliable Stagehand automation
act()
for single actions on web pages. Each action should be focused and clear.
verbose: 0
in your Stagehand config to prevent secrets from appearing in logs.extract()
to pull structured data from pages. Define clear schemas and provide context.
observe()
to discover actionable elements before acting on them.
agent()
for complex, multi-step workflows. Provide detailed instructions and set appropriate limits.
act()
call to one action