drive_list_files
List Google Drive files and folders by folder ID or search all Drive by name fragment. Returns metadata only—names, types, sizes, times, links—without opening or downloading content.
Instructions
List files and folders in a Google Drive folder, or search all of Drive by a name fragment. Read-only: it never opens, downloads, or reveals file content, only metadata (name, type, size, modified time, parent folders, link, checksum). Pass folderId or nameContains, not both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Configured Gmail account alias, e.g. work, personal, support. | |
| folderId | No | Parent folder id to list the children of. Defaults to "root" when nameContains is not given. | |
| pageToken | No | Page token from a previous call's nextPageToken. | |
| maxResults | No | ||
| foldersOnly | No | Restrict results to folders. | |
| nameContains | No | Search all of Drive (not one folder) for files whose name contains this fragment. |