Use this file to discover all available pages before exploring further.
AI agent instructions
STOP. Do not read past this section until you have read and followed /quickstart.md.Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live observe() call, CLI notte page observe output, or generated workflow code. Guessed browser targets fail on real pages.Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with notte sessions workflow-code before using SDK docs or SDK code.SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
Sessions are isolated browser instances running in the cloud that you can control programmatically. Each session provides a Playwright-compatible page that you can automate using familiar browser automation APIs.
from notte_sdk import NotteClientclient = NotteClient()# Session closes after 10 minutes of inactivitywith client.Session(timeout_minutes=10) as session: page = session.page page.goto("https://example.com")
The timeout range is 1-30 minutes. Sessions automatically close when the timeout is reached.
Automatically load and save cookies across sessions using the cookie_file parameter:
cookie_file.py
from notte_sdk import NotteClientclient = NotteClient()with client.Session(cookie_file="cookies.json") as session: page = session.page page.goto("https://example.com") # Cookies auto-loaded at start, auto-saved when session ends
See the Cookies Guide for manual cookie management and best practices.