google-drive_list_files
List files in Google Drive using search queries, filters, and pagination. Retrieve file details like name, type, size, and modification time.
Instructions
List files in Google Drive with optional search query and filtering
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search query using Drive query syntax (e.g., 'name contains "test"', 'mimeType="application/pdf"', 'parents in "folderId"') | |
| fields | No | Fields to return - IMPORTANT: Must use format 'files(id,name,mimeType,size,modifiedTime,parents,webViewLink)' for list endpoints. Do NOT use 'id,name,mimeType' format. | |
| spaces | No | Comma-separated list of spaces to query: 'drive', 'appDataFolder', 'photos' | |
| corpora | No | Corpora to search: 'user' (default), 'domain', 'drive', 'allDrives' | |
| driveId | No | ID of the shared drive to search (if corpora is 'drive') | |
| orderBy | No | Sort order: 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', 'viewedByMeTime' | |
| pageSize | No | Maximum number of files to return (default 100, max 1000) | |
| pageToken | No | Page token for pagination | |
| includeLabels | No | Comma-separated list of label IDs to include | |
| supportsAllDrives | No | Whether to support files in shared drives | |
| includeItemsFromAllDrives | No | Whether to include files from all drives | |
| includePermissionsForView | No | Specifies which additional view's permissions to include ('published') |