AI agent instructions
AI agent instructions
<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.
Parameters
string
required
ID of the file to download.
string
Destination directory, created if needed. Defaults to the current directory.Default:
FileDownloadOptions
Set
force to overwrite an existing destination; defaults to false.Default:Returns
Raises
- NotteAPIError if the storage API request fails.
- InvalidRequestError if storage has not been bound to a session.
- FileExistsError if the destination exists and
forceis false. Filesystem errors also propagate.