list_files
List files and folders in Google Drive with filtering by folder and MIME type plus pagination for manageable results.
Instructions
List files and folders in Google Drive. Can filter by folder, MIME type, and supports pagination.
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": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderBy | No | Optional. Sort order for results (e.g., "name", "modifiedTime desc", "createdTime"). | |
| folderId | No | Optional. The ID of the folder to list contents of. Defaults to root if not specified. | |
| mimeType | No | Optional. Filter by MIME type (e.g., "application/vnd.google-apps.folder" for folders only). | |
| pageSize | No | Optional. Number of results to return (default 20, max 100). | |
| pageToken | No | Optional. Token for pagination to retrieve the next page of results. | |
| includeTrashed | No | Optional. Include trashed files in results (default false). |