AACFlow

OneDrive

Create, upload, download, list, and delete files

Usage Instructions

Integrate OneDrive into the workflow. Can create text and Excel files, upload files, download files, list files, and delete files or folders.

Tools

onedrive_upload

Input

ParameterTypeRequiredDescription
fileNamestringYesThe name of the file to upload (e.g., "report.pdf", "data.xlsx")
filefileNoNo description
contentstringNoNo description
mimeTypestringNoThe MIME type of the file to create (e.g., text/plain for .txt, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for .xlsx)
folderSelectorstringNoFolder ID to upload the file to (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M")
manualFolderIdstringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the file was uploaded successfully
fileobjectThe uploaded file object with metadata including id, name, webViewLink, webContentLink, and timestamps

onedrive_create_folder

Input

ParameterTypeRequiredDescription
folderNamestringYesName of the folder to create (e.g., "My Documents", "Project Files")
folderSelectorstringNoParent folder ID to create the folder in (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M")
manualFolderIdstringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the folder was created successfully
fileobjectThe created folder object with metadata including id, name, webViewLink, and timestamps

onedrive_download

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file to download (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M")
fileNamestringNoOptional filename override (e.g., "report.pdf", "data.xlsx")

Output

ParameterTypeDescription
filefileDownloaded file stored in execution files

onedrive_list

Input

ParameterTypeRequiredDescription
folderSelectorstringNoFolder ID to list files from (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M")
manualFolderIdstringNoNo description
querystringNoFilter files by name prefix (e.g., "report", "invoice_2024")
pageSizenumberNoNo description

Output

ParameterTypeDescription
successbooleanWhether files were listed successfully
filesarrayArray of file and folder objects with metadata
nextPageTokenstringToken for retrieving the next page of results (optional)

onedrive_delete

Input

ParameterTypeRequiredDescription
fileIdstringYesThe ID of the file or folder to delete (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M")

Output

ParameterTypeDescription
successbooleanWhether the file was deleted successfully
deletedbooleanConfirmation that the file was deleted
fileIdstringThe ID of the deleted file

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started