List Google Drive files
list_drive_filesList Google Drive files and folders Hermoso can reach—created or picked—to find file IDs. Filter by name, folder, or folders only; paginate and list recursively. Read-only.
Instructions
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_drive_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | only files whose name contains this | |
| folderId | No | list the contents of this folder id | |
| pageSize | No | rows per page (1–200, default 50) | |
| pageToken | No | cursor from a previous call | |
| recursive | No | with folderId: the whole tree | |
| onlyFolders | No | list folders only | |
| includeTrashed | No | include trashed files (default false) |