File → List
AI-generatedSummary
List files in Google Drive using a query and custom options, returning metadata fields for each file.
Inputs
- Authentication (required) — Choose between 'Refresh Token (Auto-Refresh)' or 'Bearer Token (Manual)' for authenticating the API request.
- Options — Configure listing options including custom refresh token override (if using refreshToken authentication), fields to return, order by criteria, maximum number of files to return (page size), and a query string to filter files.
Output shape
a list of files, each represented as a JSON object with the requested metadata fields
The output includes an array keyed under 'json' per file result; customizable fields include file ID, name, mimeType, modifiedTime, size, etc. Pagination beyond the first page is not indicated, so the maximum number of files returned is limited by the page size parameter (default 100, max 1000). Errors are handled per item if 'Continue On Fail' is enabled, otherwise errors abort execution.
Examples
Example 1: Retrieve up to 200 text or image files created after a certain date, sorted by name.
Set query to filter by mimeType and createdTime, set pageSize to 200, orderBy to 'name', and specify fields such as files(id,name,mimeType,modifiedTime).