Google Drive

GoogleDrive_SearchDrive

Search the user's entire Google Drive, including files they created or received directly in Drive — not only files created through this app. Reads across the user's whole Drive, so it requires broad read access to their files. The provided 'query' should contain only the search terms; the tool builds the full Drive query for you, matching file names and contents.

Remote googledrive

Remote (network-hosted)

Other tools also called GoogleDrive_SearchDrive? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "description": "The maximum number of search results to return (1-50). Defaults to 20."
    },
    "query": {
      "type": "string",
      "description": "The terms to search for in Google Drive. The tool builds the full Drive query for you, matching file names and file contents — provide only the search terms, not Drive query syntax."
    },
    "order_by": {
      "type": "array",
      "items": {
        "enum": [
          "createdTime",
          "createdTime desc",
          "folder",
          "folder desc",
          "modifiedByMeTime",
          "modifiedByMeTime desc",
          "modifiedTime",
          "modifiedTime desc",
          "name",
          "name desc",
          "name_natural",
          "name_natural desc",
          "quotaBytesUsed",
          "quotaBytesUsed desc",
          "recency",
          "recency desc",
          "sharedWithMeTime",
          "sharedWithMeTime desc",
          "starred",
          "starred desc",
          "viewedByMeTime",
          "viewedByMeTime desc"
        ],
        "type": "string"
      },
      "description": "Sort order for search results. Defaults to listing the most recently modified documents first. If the query contains 'fullText', then the order_by will be ignored."
    },
    "file_types": {
      "type": "array",
      "items": {
        "enum": [
          "spreadsheet",
          "slides",
          "document",
          "drawing",
          "form",
          "folder",
          "image",
          "video",
          "audio",
          "script",
          "sites",
          "pdf"
        ],
        "type": "string"
      },
      "description": "Filter by specific file types. Defaults to None, which includes all file types."
    },
    "shared_drive_id": {
      "type": "string",
      "description": "If provided, search only within this shared drive. Defaults to None (searches My Drive and optionally all shared drives)."
    },
    "folder_path_or_id": {
      "type": "string",
      "description": "Search only within this specific folder. Provide either a path like folder/subfolder or a folder ID. If None, searches across all accessible locations. Defaults to None."
    },
    "include_shared_drives": {
      "type": "boolean",
      "description": "If True and shared_drive_id is not set, include all shared drives in search. Defaults to False (My Drive only)."
    }
  }
}