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.
Source: node-sdk/src/functions.ts Download the function code as a python file. Returns the code, and writes it to path when one is provided.

Parameters

FunctionDownloadOptions
Optional version, decryption key, and local .py destination path.Default:

Returns

The Python source text, including when a local destination is supplied.

Raises

  • InvalidRequestError if the destination does not end in .py or the decryption key is invalid.
  • NotteError if the source download fails. Local filesystem failures also propagate.

Example