Feb 6, 2025
Lot of new changes for observe
this week. If you set the returnAction
flag to true
, it'll return the suggested Playwright method to run.
Also, Stagehand leverages the accessibility (a11y) tree to improve speed, accuracy, and costs fewer tokens. Using the a11y tree, however, means Stagehand may be able to act on items that aren’t directly visible (i.e. hidden behind a dropdown). To use these new features, set onlyVisible: false
This returns a list like this, which now contains method
and arguments
Now, you can cache the selector, method, and arguments if you want to repeat the same Playwright without more LLM calls.
We also made some huge improvements to create-browser-app, making vercel AI SDK + ollama first-class citizens and greatly improving cursorrules.