Drive List Files
drive_list_filesSearch and list Google Drive files across My Drive, shared files, and shared drives by folder, kind, modification time, full text, or raw query, returning paginated results.
Instructions
Search or list Drive files in My Drive, shared with the user and in shared drives, by folder, kind, modification time, full text or a raw Drive query, all combined with AND. For a quick name lookup across Drive, contacts and Gmail at once use search_workspace, and for one known file use drive_get_file. Returns files (id, name, kind, mime_type, modified_at, parent_ids, owners, web_url, trashed, can_edit), count and next_page_token for the next page; trashed files are included unless the query says trashed = false.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "drive_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Only files of this kind, the same values as each result's kind: folder, document (Google Doc), spreadsheet (Google Sheet), presentation (Google Slides), form (Google Form), or image, video or audio (any stored file of that media type). | |
| query | No | Raw Drive search query in Drive's q syntax, terms joined with and/or, e.g. "name contains 'budget' and trashed = false" or "starred = true"; combined by AND with folder_id, kind, modified_after and full_text when those are given. Omit it and every filter to list every file the user can access, trashed files included. | |
| drive_id | No | Shared drive ID from drive_list_drives: search only that shared drive. Omit to search My Drive, files shared with the user and every shared drive they belong to. | |
| order_by | No | Comma-separated sort keys, each optionally followed by ' desc': createdTime, folder, modifiedByMeTime, modifiedTime, name, name_natural, quotaBytesUsed, recency, sharedWithMeTime, starred, viewedByMeTime; e.g. 'folder,modifiedTime desc'. Omit for Google's default order. | |
| folder_id | No | Only the direct children of this folder (not files in its subfolders); a folder ID from drive_list_files with kind 'folder', or a shared drive ID for its top level. | |
| full_text | No | Only files whose name, description or content contains these words (Drive's fullText search); quotes in the text are escaped for you. | |
| page_size | No | Files per page, 1 to 1000. | |
| page_token | No | The next_page_token from the previous response of this same call; omit for the first page. | |
| modified_after | No | Only files last modified after this time: RFC3339 such as '2026-11-01T09:00:00-03:00', or a date such as '2026-11-01' (midnight); a date or a time without an offset is read in the account time zone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| files | No | ||
| has_more | No | Whether another page is available. | |
| fetched_at | No | RFC3339 time when this response was fetched. | |
| next_page_token | No | Opaque token for the next page, or null. | |
| account_timezone | No |