Google Drive list files

drive__list_files

Access

Requires a project integration connection for drive.

Call type: Can read or manage credentials.

Arguments

FieldTypeRequiredDescription and constraints
qstringNoDrive v3 query, e.g. name = 'Report'. Use single quotes for string and date values.
pageSizenumberNoMaximum number of files to return
pageTokenstringNoPagination token
fieldsstringNoDrive File fields; omit to use defaults. Example: id,name,mimeType,modifiedTime,webViewLink.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "drive__list_files",
    "arguments": {}
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the drive integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "description": "Drive v3 query, e.g. name = 'Report'. Use single quotes for string and date values."
    },
    "pageSize": {
      "type": "number",
      "description": "Maximum number of files to return"
    },
    "pageToken": {
      "type": "string",
      "description": "Pagination token"
    },
    "fields": {
      "type": "string",
      "description": "Drive File fields; omit to use defaults. Example: id,name,mimeType,modifiedTime,webViewLink."
    }
  },
  "description": "Arguments for the drive__list_files tool."
}