@@ -65,7 +65,7 @@ import os
6565
6666client = NotteClient(api_key = os.getenv(" NOTTE_API_KEY" ))
6767
68- with client.Session(headless = False ) as session:
68+ with client.Session(open_viewer = True ) as session:
6969 agent = client.Agent(session = session, reasoning_model = ' gemini/gemini-2.5-flash' , max_steps = 30 )
7070 response = agent.run(task = " doom scroll cat memes on google images" )
7171```
@@ -103,7 +103,7 @@ class TopPosts(BaseModel):
103103 posts: list[HackerNewsPost]
104104
105105client = NotteClient()
106- with client.Session(headless = False , browser_type = " firefox" ) as session:
106+ with client.Session(open_viewer = True , browser_type = " firefox" ) as session:
107107 agent = client.Agent(session = session, reasoning_model = ' gemini/gemini-2.5-flash' , max_steps = 15 )
108108 response = agent.run(
109109 task = " Go to Hacker News (news.ycombinator.com) and extract the top 5 posts with their titles, URLs, points, authors, and comment counts." ,
@@ -120,7 +120,7 @@ from notte_sdk import NotteClient
120120
121121client = NotteClient()
122122
123- with client.Vault() as vault, client.Session(headless = False ) as session:
123+ with client.Vault() as vault, client.Session(open_viewer = True ) as session:
124124 vault.add_credentials(
125125 url = " https://x.com" ,
126126 username = " your-email" ,
@@ -143,7 +143,7 @@ from notte_sdk import NotteClient
143143client = NotteClient()
144144
145145with client.Persona(create_phone_number = False ) as persona:
146- with client.Session(browser_type = " firefox" , headless = False ) as session:
146+ with client.Session(browser_type = " firefox" , open_viewer = True ) as session:
147147 agent = client.Agent(session = session, persona = persona, max_steps = 15 )
148148 response = agent.run(
149149 task = " Open the Google form and RSVP yes with your name" ,
@@ -169,7 +169,7 @@ with client.Session(
169169 solve_captchas = True ,
170170 proxies = True , # US-based proxy
171171 browser_type = " firefox" ,
172- headless = False
172+ open_viewer = True
173173) as session:
174174 agent = client.Agent(session = session, max_steps = 5 )
175175 response = agent.run(
@@ -278,7 +278,7 @@ from notte_sdk import NotteClient
278278
279279client = NotteClient()
280280
281- with client.Session(headless = False , perception_type = " fast" ) as session:
281+ with client.Session(open_viewer = True , perception_type = " fast" ) as session:
282282 # Script execution for deterministic navigation
283283 session.execute({" type" : " goto" , " url" : " https://www.quince.com/women/organic-stretch-cotton-chino-short" })
284284 session.observe()
0 commit comments