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/files.ts File storage bound to a session, the counterpart of Python’s RemoteFileStorage. Create it unbound and pass it to client.Session({ storage }) so the session binds it on start, or bind it yourself with a session ID.
download() saves to disk; downloadBlob() returns bytes in memory, and stream() returns a readable stream. For lower-level session file access, see NotteClient.Files.

Create RemoteFileStorage

Use NotteClient.FileStorage to create this object from your configured client.
string

Usage

  • download: Download a file to <localDir>/<filename> and return the local path. The file is written atomically (temporary file + rename). Rejects with FileExistsError when the destination exists unless force is set.
  • downloadBlob: Download a file’s bytes as a Blob without touching the local filesystem.
  • upload: Upload a file to the session. A string is read as a local path and its basename becomes the uploaded filename unless uploadFileName is set.
  • list: List the session’s files.
  • metadata: Metadata of a file by ID. Rejects with FileNotFoundError when unknown.
  • stream: Stream a file’s bytes without buffering the whole file in memory.
  • delete: Delete a session file.
NotteClient
required
string

sessionId

ID of the bound session. Throws InvalidRequestError while the storage is unbound.

isBound

Whether the storage has been bound to a session yet.