Save tested browser scripts in a workspace and reuse them on later runs.
Scripts turn a successful browser run into a reusable
workspace asset. The agent writes and tests the
helper once. Later runs execute it first and repair it only when the site
changes.Create one workspace for the workflow, then use these prompts with the same
workspace_id / workspaceId. The run code does not
change.
Get the top five Hacker News stories as JSON.Then reproduce exactly what you did as helper functions or a script. Test it,save it in this workspace, and add a README with instructions for using it again.
Use the existing workspace script to get the top ten Hacker News stories.Follow its README. Only fix and retest the script if it no longer works.
This is faster and cheaper for repeated workflows, but it still starts an agent
and uses tokens. The script is reusable and self-healing—not zero-LLM execution.