Build an AI agent that can autonomously control a browser with Stagehand
page.act()
to execute the LLM-suggested action.stagehand.agent
into your browser automation is as easy as adding a single line of code:
stagehand.agent
with Computer Use Agent (CUA) models. The default implementation is coming soon.replay
function below to save the actions to a Stagehand script file, which will reproduce the same actions the agent did, with cached actions built in.
utils.ts
"Get me the stock price of NVDA"
: