Google Drive

GoogleDrive_SearchFiles

Search for files in Google Drive. The provided 'query' should only contain the search terms. The tool will construct the full search query for you.

Remote googledrive

Remote (network-hosted)

Other tools also called GoogleDrive_SearchFiles? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "description": "The maximum number of search results to return. Defaults to 50."
    },
    "query": {
      "type": "string",
      "description": "The exact search query to send to the Google Drive API to find files in Google Drive. The tool will construct the query for you. Will search for filenames and file contents that match the provided query."
    },
    "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)."
    },
    "include_organization_domain_documents": {
      "type": "boolean",
      "description": "Whether to include documents from the organization's domain. This is applicable to admin users who have permissions to view organization-wide documents in a Google Workspace account. Defaults to False."
    }
  }
}