AI agent instructions
AI agent instructions
Quick Start
quickstart.py
How It Works
Files have two sources:Uploading Files
Upload files from your local machine to make them available in sessions:Each file can be up to 1 GiB, with up to 10 GiB stored per session. For larger files, contact the
team at support@notte.cc.
Attaching a URL directly to a form
In a cloud session, pass a public HTTP(S) file URL, including a signed URL, tosession.execute(type="upload_file", file_path=...) along with the upload element’s
selector or observed ID. Notte downloads and attaches the file without navigating
away from the form or requiring a separate session.storage.upload() call.
storage.upload() only accepts local files; URL support belongs to the browser’s
upload_file action.
Downloading Files
Download files that your session retrieved from websites with thedownload_file action:
downloading_files.py
Force Overwrite
Overwrite existing local files: Before running this example, setsession_id (Python) or sessionId (Node) to
your storage’s session ID, and file_id or fileId to the ID returned by uploading
or listing the file. The Node example uses the client initialized above.
Using with Sessions
Use file storage with scripted automation:using_with_sessions.py
API Reference
FileStorage Methods
Parameters
upload()file_path- Path to the local file to uploadupload_file_name- Optional custom name for the uploaded file
file_id- ID of the file, fromupload()orlist()(SessionFile.id)local_dir- Local directory to save the file (default: current directory)force- Overwrite an existing local file (default: False)
Supported File Types
File storage supports all common file types:- Documents: PDF, DOCX, XLSX, TXT, CSV
- Images: PNG, JPG, JPEG, GIF, WEBP
- Archives: ZIP, RAR, TAR, GZ
- Media: MP4, MP3
- Data: JSON, XML
Best Practices
1. Use Descriptive Filenames
2. Check Downloads After Session
Always check for downloaded files after the session ends:check_downloads.py
Next Steps
Sessions
Learn about browser sessions
Vaults
Store credentials securely
Personas
Create browser identities