You can cache actions in Stagehand to avoid redundant LLM calls.
observe
to preview an actionobserve
lets you preview an action before taking it. If you are satisfied with the action preview, you can run it in page.act
with no further LLM calls.
page.act
directly.
actWithCache
to run an action with caching: