import_from_cloud
Import a Drive / OneDrive folder into the Library
Description
Pull the files in a Google Drive or OneDrive FOLDER into this profile's Library, so they can be used like anything rendered here — published, scheduled, cloned, used as a product photo or a reference. Hermoso downloads each file with the user's own connected account (a Drive/OneDrive file is not public) and stores a durable Hermoso url for each. Give `folderId` from list_drive_files / list_onedrive_files with onlyFolders — omit it for the root. GOOGLE DRIVE ONLY SHOWS WHAT THE USER HANDED OVER: our Drive scope is `drive.file`, so Hermoso can see the files and folders it created plus the ones the user picked with the Google picker in the app, and NEVER their whole Drive. Picking a FOLDER hands over the folder alone, not the files in it, so if a folder comes back empty the reply carries a link that opens the picker inside it, where the user selects every file at once (Cmd+A / Ctrl+A); give them that link. OneDrive has no such limit. SUBFOLDERS ARE NOT WALKED and Google-native docs (Docs/Sheets/Slides) have no file to download: both are reported back BY NAME rather than silently dropped, along with anything too large or unreadable, so you can tell the user exactly what did and did not come across.
Parameters
| Parameter | Type | Description |
|---|---|---|
providerrequired | "drive" | "onedrive" | which cloud — `drive` is Google Drive, `onedrive` is Microsoft OneDrive |
folderId | string | the folder to import, from list_drive_files / list_onedrive_files (onlyFolders:true). Omit for the root of the drive. |
limit | number | how many files to bring across in this call (default 10, max 25). Anything over the limit is listed as skipped so you know what is left. |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/import_from_cloud.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"import_from_cloud","arguments":{"provider":"<one of the listed values>"}}}
CLI
hermoso call import_from_cloud --json '{"provider":"<one of the listed values>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_drive_filesList Google Drive fileslist_onedrive_filesList OneDrive filesget_drive_fileGet a Drive file’s detailsupdate_drive_fileRename / move / trash a Drive filedelete_drive_fileDelete a Drive filecreate_drive_folderCreate a Drive folder