list_drive_files
List Google Drive files read-only
Description
List the Google Drive files & folders Hermoso can reach: the ones it created plus any the user picked with the Google file picker in the app (drive.file, never their whole Drive). This is how you find a picked file's id. Filter by query (name contains …), folderId, or onlyFolders:true; paginate with pageToken. Read-only. A FOLDER: picking a folder hands over the folder alone, not its files, so a folder can list empty or partly; the reply then carries `pickUrl`, an app link that opens the picker inside that folder (Cmd+A / Ctrl+A selects every file and subfolder). Give the user that exact link, then list again. recursive:true walks every subfolder Hermoso can see (each row has its `path`) and reports picked files whose folder it cannot see.
Parameters
| Parameter | Type | Description |
|---|---|---|
query | string | only files whose name contains this |
folderId | string | list the contents of this folder id |
recursive | boolean | with folderId: the whole tree |
onlyFolders | boolean | list folders only |
pageSize | number | rows per page (1–200, default 50) |
pageToken | string | cursor from a previous call |
includeTrashed | boolean | include trashed files (default false) |
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/list_drive_files.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_drive_files","arguments":{}}}
CLI
hermoso call list_drive_files --json '{}'
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
import_from_cloudImport a Drive / OneDrive folder into the Libraryget_drive_fileGet a Drive file’s detailsupdate_drive_fileRename / move / trash a Drive filedelete_drive_fileDelete a Drive filecreate_drive_folderCreate a Drive folder