listDriveFiles
Lists Google Drive files and filters them by type, name or content query, or modification date, with sorting and result limits.
Instructions
Lists files in your Drive, optionally filtered by type (document, spreadsheet, presentation, form, pdf), name/content query, or modification date.
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": "listDriveFiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search query to filter files by name or content. | |
| orderBy | No | Sort order for results. | modifiedTime |
| fileType | No | Filter by file type. Defaults to all types. | all |
| maxResults | No | Maximum number of files to return (1-100). | |
| modifiedAfter | No | Only return files modified after this date (ISO 8601 format, e.g., "2024-01-01"). |