# Hermoso: list_drive_files: List Google Drive · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/workspace/list_drive_files/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Workspace & account](https://hermoso.ai/docs/reference/workspace/) / list_drive_files

# `list_drive_files`

List Google Drive files read-only

Area: PULL A WHOLE CLOUD FOLDER INTO THE LIBRARY · [Workspace & account](https://hermoso.ai/docs/reference/workspace/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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](https://hermoso.ai/docs/credits/).

## Related tools

- [import_from_cloud](https://hermoso.ai/docs/reference/workspace/import_from_cloud/) Import a Drive / OneDrive folder into the Library
- [get_drive_file](https://hermoso.ai/docs/reference/workspace/get_drive_file/) Get a Drive file’s details
- [update_drive_file](https://hermoso.ai/docs/reference/workspace/update_drive_file/) Rename / move / trash a Drive file
- [delete_drive_file](https://hermoso.ai/docs/reference/workspace/delete_drive_file/) Delete a Drive file
- [create_drive_folder](https://hermoso.ai/docs/reference/workspace/create_drive_folder/) Create a Drive folder

[All 143 Workspace & account tools](https://hermoso.ai/docs/reference/workspace/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
