data_files/ folder.
Open Session Files
Click the folder button above the message box, at the right (Session Files). The session’s files open in the pane beside the chat. Click the button again to close them. The pane shows a trail back to the session at the top. Inside it you can:- Switch the layout between Icons and List. Script.it remembers your choice on this device.
- Search for a file by name, including inside subfolders.
- Open a folder to browse into it, and use the trail to go back up.
What ends up in Session Files
Each time a block runs, Script.it normally empties its output folder first, so the folder holds that block’s latest results. To keep a file across runs and sessions, ask the agent to save it as a script asset.
Preview a file
Click a file to open it in the pane. Script.it shows most files in place, including Markdown, plain text and code, JSON, CSV, HTML, images, audio, video, PDF, and Word, PowerPoint and Excel files.- JSON opens in an editor that can show tables, record pages, or boards.
- HTML renders as a page, with its scripts running in a sandbox.
- A file Script.it can’t preview still lets you download it.
Work with files
Right-click a file or folder, or use its actions menu:
Rename and Delete wait while the agent is working in the session (Available when the agent finishes).
Upload files
Drag files from your computer onto Session Files. The pane reads Drop files to upload to Session Files. You can drop onto a folder to upload into it. The agent is told about the files you add or delete, so you can ask it to use them right away. You can also attach files to a message, which saves them inuser-attachments/. See Agent chat.
You can upload, rename, and delete files only in the session you have open. Another session’s files are read-only from here.
Session files vs. script files
This separation keeps scripts reusable. You can run the same script many times, in different sessions, and the outputs of one run never mix with another.
Download everything
To take a whole session with you, choose Export from the session’s menu in the sidebar. You get a.zip file with the conversation and the session’s files, which you can import again later. See Managing sessions.
To download only the files, right-click the Session Files name at the top of the pane and choose Download as .zip. The same works for any folder inside it.