Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
Accepts either cookies (list of dicts) or cookie_file (json file path) as argument.
upload_cookies.py

Parameters

UnionType[list[CookieDict], None]
default:"None"
The list of cookies (can be obtained from session.get_cookies)
The path to the cookie file (json format)

Returns

SetCookiesResponse: The response from the upload cookies request.

Raises

  • ValueError: If both cookies and cookie_file are provided, or if neither is provided.
  • ValueError: If the session hasn’t been started yet (no session_id available).