Asteroid agents can work with files in multiple ways, enabling them to download files from websites, read various file types, and upload files to web applications. These capabilities are available through specialized tools in the AI Agent node. Files can also be downloaded via the API.
Your agents can download files from websites during browser automation sessions. Downloaded files are stored in the execution context and can be accessed through the agents tools.
Downloaded files appear in the Files section at the top right of the screen
// Get list of execution filesconst files = await getExecutionFiles(client, executionId);// Download specific filesfor (const file of files) { const savedPath = await downloadExecutionFile(client, file, './downloads/'); console.log(`Downloaded ${file.fileName} to ${savedPath}`);}