drive_list_files
Search Google Drive and return matching file metadata, including ID, name, MIME type, owners, sharing status, and links, with configurable result limits.
Instructions
Search Google Drive and return matching file metadata (id, name, mime_type, owners, sharing status). Returns a list of {id, name, mime_type, size, created_time, modified_time, owners, shared, web_view_link, parent_ids, drive_id, thumbnail_link}: at most max_results files (default 20, capped at 1000), read across pages, in the order the Drive API gives for the query; fields may be redacted by the user's privacy settings. Use drive_list_folder to list one folder's children, or drive_get_file_metadata when you already have a file's id. Auto-approved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Drive API 'q' search query syntax, not a plain-text search string, e.g. "name contains 'Foo'" or "fullText contains 'Foo'". See https://developers.google.com/drive/api/guides/search-files | |
| reason | Yes | One sentence: why are you calling this tool right now? | |
| max_results | No | Most files to return. Default 20, capped at 1000. Reads up to max_results items across pages. |