Google Drive

GoogleDrive_GetFileTreeStructure

Get the file/folder tree structure of the user's entire Google Drive. Very inefficient for large drives. Use with caution.

Remote googledrive

Remote (network-hosted)

Other tools also called GoogleDrive_GetFileTreeStructure? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "description": "The number of files and folders to list. Defaults to None, which will list all files and folders."
    },
    "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. Defaults to listing the most recently modified documents first"
    },
    "include_shared_drives": {
      "type": "boolean",
      "description": "Whether to include shared drives in the file tree structure. Defaults to False."
    },
    "restrict_to_shared_drive_id": {
      "type": "string",
      "description": "If provided, only include files from this shared drive in the file tree structure. Defaults to None, which will include files and folders from all drives."
    },
    "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."
    }
  }
}