Recipe
This recipe shows how to initialize a shared browser session in a hook and reuse it across automation steps usingattempt_store.
Project structure
Setup
hooks/setup_context.py
Connect to Intuned’s browser via CDP and store the instance for later steps:Use the browser in your automation
Retrieve the stored browser instance and pass it to a Browser Use agent:Related links
Cookbook (Python)
Python setup hooks example in the Intuned Cookbook
Cookbook (TypeScript)
TypeScript setup hooks example in the Intuned Cookbook
attempt_store (Python)
Store and retrieve data within an attempt