list_files
Retrieve a list of files from Google Drive, with options to filter by folder, sort by date or name, and paginate results.
Instructions
List files in Google Drive, optionally within a specific folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| corpora | No | Source of files: 'user' (default), 'drive' (specific shared drive), or 'allDrives'. | |
| drive_id | No | ID of the shared drive when corpora='drive'. | |
| order_by | No | Sort order. Options: 'name', 'modifiedTime', 'createdTime'. Append ' desc' for descending. | modifiedTime desc |
| folder_id | No | ID of the folder to list files from. If not provided, lists from root. | |
| page_size | No | Maximum number of files to return (1-100). | |
| page_token | No | Token for the next page of results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |