goto(): navigate to a specific URLobserve(): observe the current pageextract(): extract data from the current pageact(): take action on the current page
Node.js
getStagehand() helper function retrieves the persisted instance created for the network execution.
For a complete example of a simple search agent using Stagehand, check out the Simple Search Agent using Stagehand example.
Related guides
Stagehand quickstart
Run browser actions with Stagehand.
Functions quickstart
Deploy a browser workflow as a Function.