list_files
List and filter Google Drive files by name, modification time, or size. Supports pagination and shared drives.
Instructions
List files in Google Drive with optional filtering
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 |
|---|---|---|---|
| pageSize | No | Number of files to return | |
| pageToken | No | Token for pagination | |
| orderBy | No | Order by field (e.g., 'name', 'modifiedTime', 'size') | |
| q | No | Query string to filter files | |
| driveId | No | ID of the shared drive | |
| includeItemsFromAllDrives | No | Include items from all drives |