Google Drive

GOOGLEDRIVE_FIND_FILE

Tool to list or search for files and folders in google drive. use when you need to find specific files based on query criteria or list contents of a drive/folder.

Remote googledrive

Other tools also called GOOGLEDRIVE_FIND_FILE? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "title": "Q",
      "default": null,
      "nullable": true,
      "description": "A query for filtering the file results. See Google Drive API documentation for query syntax. Example: \\\"name contains 'report' and mimeType = 'application/pdf'\\\""
    },
    "fields": {
      "type": "string",
      "title": "Fields",
      "default": "*",
      "nullable": true,
      "description": "Selector specifying which fields to include in a partial response. Use '*' for all fields or a comma-separated list, e.g., 'nextPageToken,files(id,name,mimeType)'."
    },
    "spaces": {
      "type": "string",
      "title": "Spaces",
      "default": "drive",
      "nullable": true,
      "description": "A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'."
    },
    "corpora": {
      "enum": [
        "user",
        "drive",
        "domain",
        "allDrives"
      ],
      "type": "string",
      "title": "Corpora",
      "default": null,
      "nullable": true,
      "description": "Corpora to query. 'user' for user's personal files, 'drive' for files in a specific shared drive (requires 'driveId'), 'domain' for files shared with the domain, 'allDrives' for all drives the user has access to."
    },
    "driveId": {
      "type": "string",
      "title": "Drive Id",
      "default": null,
      "nullable": true,
      "description": "ID of the shared drive to search. Required if 'corpora' is 'drive'."
    },
    "orderBy": {
      "type": "string",
      "title": "Order By",
      "default": null,
      "nullable": true,
      "description": "A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example: 'modifiedTime desc,name'."
    },
    "pageSize": {
      "type": "integer",
      "title": "Page Size",
      "default": 100,
      "maximum": 1000,
      "minimum": 1,
      "nullable": true,
      "description": "The maximum number of files to return per page."
    },
    "pageToken": {
      "type": "string",
      "title": "Page Token",
      "default": null,
      "nullable": true,
      "description": "The token for continuing a previous list request on the next page."
    },
    "supportsAllDrives": {
      "type": "boolean",
      "title": "Supports All Drives",
      "default": true,
      "nullable": true,
      "description": "Whether the requesting application supports both My Drives and shared drives. If 'includeItemsFromAllDrives' is true, this must also be true."
    },
    "includeItemsFromAllDrives": {
      "type": "boolean",
      "title": "Include Items From All Drives",
      "default": false,
      "nullable": true,
      "description": "Whether both My Drive and shared drive items should be included in results. If true, 'supportsAllDrives' should also be true."
    }
  }
}