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.
This method sends a close request to the API and verifies that the session was properly closed. It logs the session closure and raises an error if the session fails to close. Example:
Note that we strongly recommend using the with statement to start and stop the session to avoid any issues with session cleanup.
Example:

Parameters

Literal['manual', 'error']
default:"manual"

Returns

None

Raises

  • ValueError: If the session hasn’t been started (no session_id available).
  • RuntimeError: If the session fails to close properly.